R/classes.R

Defines functions responseList

#' Response Json
#' @rdname responseList
#' @importFrom yaml as.yaml
#' @importFrom methods new
#' @export
setClass("responseList", contains = "list")

responseList <- function(res){
    new("responseList", res)
}

setMethod("show", "responseList", function(object){
    cat(as.yaml(object))
})
rworkflow/RcwlCloud documentation built on March 24, 2022, 1:26 p.m.