sePrivilege-class: Class '"sePrivilege"': A class to represent a StackExhange...

Description Details Fields Author(s) See Also Examples

Description

Provides a model representing a privilege from a StackExchange site

Details

The sePrivilege 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 sePrivilegeFactory. Accessor set & get methods are provided for every field using reference class $accessors() methodology (see setRefClass). As an example, the description field could be accessed with object$getDescription() and object$setDescription().

Fields

shortDescription:

Brief description of privilege

description:

In depth description of privilege

reputation:

Reputation required for privilege

site:

StackExchange site this badge belongs to

Author(s)

Jeff Gentry

See Also

getPrivileges, setRefClass

Examples

1
2
   zz <- getPrivileges(5)
   sapply(zz, function(x) x$getDescription())

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