Skip to contents

R6 Class representing a resource for managing project members.

Super class

sevenbridges2::Item -> Member

Public fields

id

Member's id.

username

Member's username.

email

Member's email.

type

Member's type.

permissions

Member's permissions.

Methods


Method new()

Create a new Member object.

Usage

Member$new(res = NA, ...)

Arguments

res

Response containing Member object information.

...

Other response arguments.


Method print()

Print method for Member class.

Usage

Member$print()

Examples

\dontrun{
 # x is API response when member is requested
 member_object <- Member$new(
                    res = x,
                    href = x$href,
                    auth = auth,
                    response = attr(x, "response")
                   )

 # Print member object
 member_object$print()
}


Method reload()

Reload Member object information.

Usage

Member$reload()

Examples

\dontrun{
 # x is API response when member is requested
 member_object <- Member$new(
                    res = x,
                    href = x$href,
                    auth = auth,
                    response = attr(x, "response")
                   )

 # Reload member object
 member_object$reload()
}


Method clone()

The objects of this class are cloneable with this method.

Usage

Member$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples


## ------------------------------------------------
## Method `Member$print`
## ------------------------------------------------

if (FALSE) {
 # x is API response when member is requested
 member_object <- Member$new(
                    res = x,
                    href = x$href,
                    auth = auth,
                    response = attr(x, "response")
                   )

 # Print member object
 member_object$print()
}


## ------------------------------------------------
## Method `Member$reload`
## ------------------------------------------------

if (FALSE) {
 # x is API response when member is requested
 member_object <- Member$new(
                    res = x,
                    href = x$href,
                    auth = auth,
                    response = attr(x, "response")
                   )

 # Reload member object
 member_object$reload()
}