R6 Class representing a VolumeContentCollection
Source:R/class-volumecontent-collection.R
VolumeContentCollection.Rd
R6 Class representing a resource for managing volume content collections.
Super class
sevenbridges2::Collection
-> VolumeContentCollection
Methods
Method new()
Create new VolumeContentCollection object.
Usage
VolumeContentCollection$new(res = NA, ...)
Method print()
Print method for VolumeContentCollection class.
Method next_page()
Return next page of results.
Arguments
...
Other arguments or query parameters that can be passed to core
api()
function like 'advance_access', 'fields' etc.
Method all()
Fetches all available items.
Arguments
...
Other arguments or query parameters that can be passed to core
api()
function like 'advance_access', 'fields' etc.
Examples
## ------------------------------------------------
## Method `VolumeContentCollection$print`
## ------------------------------------------------
if (FALSE) {
# x is API response when volume content collection is requested
vol_con_col_object <- VolumeContentCollection$new(
res = x,
href = x$href,
links = x$links,
auth = auth,
response = attr(x, "response")
)
# Print volume content collection object
vol_con_col_object$print()
}
## ------------------------------------------------
## Method `VolumeContentCollection$next_page`
## ------------------------------------------------
if (FALSE) {
# x is API response when volume content collection is requested
vol_con_col_object <- VolumeContentCollection$new(
res = x,
href = x$href,
links = x$links,
auth = auth,
response = attr(x, "response")
)
# Get next page of results
vol_con_col_object$next_page()
}
## ------------------------------------------------
## Method `VolumeContentCollection$prev_page`
## ------------------------------------------------
if (FALSE) {
# x is API response when volume content collection is requested
vol_con_col_object <- VolumeContentCollection$new(
res = x,
href = x$href,
links = x$links,
auth = auth,
response = attr(x, "response")
)
# Get previous page of results
vol_con_col_object$prev_page()
}
## ------------------------------------------------
## Method `VolumeContentCollection$all`
## ------------------------------------------------
if (FALSE) {
# x is API response when volume content collection is requested
vol_con_col_object <- VolumeContentCollection$new(
res = x,
href = x$href,
links = x$links,
auth = auth,
response = attr(x, "response")
)
# Get all results
vol_con_col_object$all()
}