| VolumeContentCollection | R Documentation |
R6 Class representing a resource for managing volume content collections.
sevenbridges2::Collection -> VolumeContentCollection
prefixesPrefixes on the volume, returned in API response.
new()Create new VolumeContentCollection object.
VolumeContentCollection$new(res = NA, ...)
resResponse containing VolumeContentCollection object fields.
...Other response arguments.
print()Print method for VolumeContentCollection class.
VolumeContentCollection$print(n = 10)
nNumber of items to print in console.
\dontrun{
# 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()
}
next_page()Return next page of results.
VolumeContentCollection$next_page(...)
...Other arguments or query parameters that can be passed to the
core api() function like 'advance_access', 'fields' etc.
\dontrun{
# 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()
}
prev_page()Return the previous page of results.
VolumeContentCollection$prev_page()
\dontrun{
# 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()
}
all()Fetches all available items.
VolumeContentCollection$all(...)
...Other arguments or query parameters that can be passed to the
core api() function like 'advance_access', 'fields' etc.
\dontrun{
# 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()
}
clone()The objects of this class are cloneable with this method.
VolumeContentCollection$clone(deep = FALSE)
deepWhether to make a deep clone.
## ------------------------------------------------
## Method `VolumeContentCollection$print`
## ------------------------------------------------
## Not run:
# 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()
## End(Not run)
## ------------------------------------------------
## Method `VolumeContentCollection$next_page`
## ------------------------------------------------
## Not run:
# 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()
## End(Not run)
## ------------------------------------------------
## Method `VolumeContentCollection$prev_page`
## ------------------------------------------------
## Not run:
# 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()
## End(Not run)
## ------------------------------------------------
## Method `VolumeContentCollection$all`
## ------------------------------------------------
## Not run:
# 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()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.