seBadge-class: Class '"seBadge"': A class to represent a StackExchange badge

Description Details Fields Author(s) See Also Examples

Description

Provides a model representing a badge from a StackExchange site

Details

The seBadge class is implemented as a reference class. An instance of a generator for this class is provided as a convenience to the user as it is configured to handle most standard cases. To access this generator, use the object seBadgeFactory. Accessor set & get methods are provided for every field using reference class $accessors() methodology (see setRefClass). As an example, the name field could be accessed with object$getName() and object$setName().

Fields

badgeID:

Internal ID of the badge

rank:

The ranking of the badge, e.g. gold, silver

name:

The name of the badge

description:

A longer description of the badge

awardCount:

The number of times this badge has been awarded

tagBased:

Logical, is this badge tag based?

site:

StackExchange site this badge belongs to

Author(s)

Jeff Gentry

See Also

allBadges, nameBadges, tagBadges, badgeRecipients, setRefClass

Examples

1
2
  zz <- allBadges(num=5)
  sapply(zz, function(x) x$getDescription())

geoffjentry/RStackExchange documentation built on May 17, 2019, 1:11 a.m.