class Bio::BaseSpace::BaseSpaceModel
Basic representation of a BaseSpace
model.
Attributes
api[RW]
Public Class Methods
new()
click to toggle source
Create a new BaseSpaceModel
instance.
# File lib/basespace/model/basespace_model.rb, line 24 def initialize # [TODO] This class is not similar to other modles. Need to check if this port is OK. @swagger_types = { 'Id' => 'str', } @attributes = { 'Id' => nil, } end
Public Instance Methods
id()
click to toggle source
Returns the ID of the model.
# File lib/basespace/model/basespace_model.rb, line 35 def id get_attr('Id') end
is_init()
click to toggle source
Returns whether this object has been initialized, which is always the case (i.e., true).
# File lib/basespace/model/basespace_model.rb, line 46 def is_init return true end
set_api(api)
click to toggle source
Set a BaseSpaceAPI
object for this BaseSpaceModel
.
api
-
BaseSpaceAPI
instance.
# File lib/basespace/model/basespace_model.rb, line 53 def set_api(api) @api = api end
to_s()
click to toggle source
Returns the ID of the model.
# File lib/basespace/model/basespace_model.rb, line 40 def to_s is_init return get_attr('Id') end