Class: Bio::BaseSpace::RunCompact

Inherits:
Model
  • Object
show all
Defined in:
lib/basespace/model/run_compact.rb

Overview

Run compact model.

Instance Attribute Summary

Attributes inherited from Model

#attributes, #swagger_types

Instance Method Summary collapse

Methods inherited from Model

#get_attr, #method_missing, #set_attr, #to_str

Constructor Details

#initializeRunCompact

Create a new RunCompact instance.



23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Bio::BaseSpace::Model

Instance Method Details

#get_access_str(scope = 'write') ⇒ Object

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

scope

The type that is requested (write|read).



46
47
48
49
# 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_sObject

Return the experiment name.



39
40
41
# File 'lib/basespace/model/run_compact.rb', line 39

def to_s
  return get_attr('ExperimentName')
end