Class: Bio::BaseSpace::AppSessionLaunchObject

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

Overview

Records the launch as part of an AppSession.

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

#initializeAppSessionLaunchObject

Create a new instance.



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/basespace/model/app_session_launch_object.rb', line 23

def initialize
  @swagger_types = {
    'Content'      => 'dict',
    'Href'         => 'str',
    'HrefContent'  => 'str',
    'Rel'          => 'str',
    'Type'         => 'str',
  }
  @attributes = {
    'Content'      => nil,
    'Href'         => nil,
    'HrefContent'  => nil,
    'Rel'          => nil,
    'Type'         => nil,
  }
end

Dynamic Method Handling

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

Instance Method Details

#serialize_object(api) ⇒ Object

Serializes the object.

api

BaseSpaceAPI instance.



48
49
50
51
52
# File 'lib/basespace/model/app_session_launch_object.rb', line 48

def serialize_object(api)
  res = api.serialize_object(get_attr('Content'), get_attr('Type'))
  set_attr('Content', res)
  return self
end

#to_sObject

Returns the type of the object.



41
42
43
# File 'lib/basespace/model/app_session_launch_object.rb', line 41

def to_s
  return get_attr('Type').to_s
end