Class: Pennylane::ListObject
- Inherits:
-
Object
- Object
- Object
- Pennylane::ListObject
show all
- Includes:
- Enumerable
- Defined in:
- lib/pennylane/list_object.rb
Instance Attribute Summary
Attributes inherited from Object
#id
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Object
descendants, #initialize_from_response, objects, protected_fields
Class Method Details
.build_from(response, params = {}, opts = {}) ⇒ Object
9
10
11
|
# File 'lib/pennylane/list_object.rb', line 9
def self.build_from(response, params = {}, opts = {})
new.initialize_from_response(response)
end
|
.object_name ⇒ Object
5
6
7
|
# File 'lib/pennylane/list_object.rb', line 5
def self.object_name
'list'
end
|
Instance Method Details
17
18
19
|
# File 'lib/pennylane/list_object.rb', line 17
def data
@values[key_for(@values)]
end
|
#each(&blk) ⇒ Object
13
14
15
|
# File 'lib/pennylane/list_object.rb', line 13
def each(&blk)
data.each(&blk)
end
|