class Bio::BaseSpace::RunCompact

Run compact model.

Public Class Methods

new() click to toggle source

Create a new RunCompact instance.

# File lib/basespace/model/run_compact.rb, line 23
def initialize
  @swagger_types = {
    'DateCreated'     => 'datetime',
    'Id'              => 'str',
    'Href'            => 'str',
    'ExperimentName'  => 'str',
  }
  @attributes = {
    'DateCreated'     => nil, # datetime
    'Id'              => nil, # str
    'Href'            => nil, # str
    'ExperimentName'  => nil, # str
  }
end

Public Instance Methods

get_access_str(scope = 'write') click to toggle source

Returns the scope-string to used for requesting BaseSpace access to the object.

scope

The type that is requested (write|read).

# File lib/basespace/model/run_compact.rb, line 46
def get_access_str(scope = 'write')
  is_init
  return scope + ' run ' + get_attr('Id').to_s
end
to_s() click to toggle source

Return the experiment name.

# File lib/basespace/model/run_compact.rb, line 39
def to_s
  return get_attr('ExperimentName')
end