Class: Bio::BaseSpace::ListResponse
- Defined in:
- lib/basespace/model/list_response.rb
Overview
A list response object.
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
-
#convert_to_object_list ⇒ Object
Converts the object to a Ruby Array.
-
#initialize ⇒ ListResponse
constructor
Create a new ListResponse instance.
Methods inherited from Model
#get_attr, #method_missing, #set_attr, #to_str
Constructor Details
#initialize ⇒ ListResponse
Create a new ListResponse instance.
24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/basespace/model/list_response.rb', line 24 def initialize @swagger_types = { 'ResponseStatus' => 'ResponseStatus', 'Response' => 'ResourceList', 'Notifications' => 'list<Str>', } @attributes = { 'ResponseStatus' => nil, # ResponseStatus 'Response' => nil, # ResourceList 'Notifications' => nil, # list<Str> } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Bio::BaseSpace::Model
Instance Method Details
#convert_to_object_list ⇒ Object
Converts the object to a Ruby Array.
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/basespace/model/list_response.rb', line 38 def convert_to_object_list l = [] get_attr('Response').items.each do |m| io = eval(m) s = io.to_json mj = JSON.parse(s) l << mj end return l end |