R/r_source_library.R

#' RSourceLibrary
#'
#' @export
#' @format \code{\link{R6Class}} object, super class \code{\link{RLibrary}}.
#' @field description of type String inherited from super class \code{\link{Document}}.
#' @field name of type String inherited from super class \code{\link{Document}}.
#' @field tags list of type String inherited from super class \code{\link{Document}}.
#' @field version of type String inherited from super class \code{\link{Document}}.
#' @field isPublic of type bool inherited from super class \code{\link{Document}}.
#' @field isDeleted of type bool inherited from super class \code{\link{PersistentObject}}.
#' @field rev of type String inherited from super class \code{\link{PersistentObject}}.
#' @field id of type String inherited from super class \code{\link{IdObject}}.
#' @field fileId of type String.
#' @field rDescription object of class \code{\link{RDescription}} inherited from super class \code{\link{RLibrary}}.
#' @field acl object of class \code{\link{Acl}} inherited from super class \code{\link{Document}}.
#' @field createdDate object of class \code{\link{Date}} inherited from super class \code{\link{Document}}.
#' @field lastModifiedDate object of class \code{\link{Date}} inherited from super class \code{\link{Document}}.
#' @field urls list of class \code{\link{Url}} inherited from super class \code{\link{Document}}.
#' @field meta list of class \code{\link{Pair}} inherited from super class \code{\link{Document}}.
#' @field url object of class \code{\link{Url}} inherited from super class \code{\link{Document}}.
RSourceLibrary <- R6::R6Class("RSourceLibrary", inherit = RLibrary, public = list(fileId = NULL,
    initialize = function(json = NULL) {
        super$initialize(json = json)
    }, init = function() {
        super$init()
        self$fileId = ""
    }, initJson = function(json) {
        super$initJson(json)
        self$fileId = json$fileId
    }, toTson = function() {
        m = super$toTson()
        m$kind = tson.scalar("RSourceLibrary")
        m$fileId = tson.scalar(self$fileId)
        return(m)
    }))
tercen/teRcenApi documentation built on Feb. 8, 2024, 5:59 p.m.