Class: ActiveApi::Collection
- Inherits:
-
Object
- Object
- ActiveApi::Collection
- Includes:
- Builder, HasDefinition
- Defined in:
- lib/active_api/collection.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#objects ⇒ Object
readonly
Returns the value of attribute objects.
-
#parents ⇒ Object
readonly
Returns the value of attribute parents.
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
Instance Method Summary collapse
-
#initialize(objects, options) ⇒ Collection
constructor
A new instance of Collection.
Methods included from HasDefinition
Methods included from Builder
Constructor Details
#initialize(objects, options) ⇒ Collection
Returns a new instance of Collection.
8 9 10 11 12 13 |
# File 'lib/active_api/collection.rb', line 8 def initialize(objects, ) @objects = objects @node = [:node] @parents = [:parents] @schema = [:schema] end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
6 7 8 |
# File 'lib/active_api/collection.rb', line 6 def node @node end |
#objects ⇒ Object (readonly)
Returns the value of attribute objects.
6 7 8 |
# File 'lib/active_api/collection.rb', line 6 def objects @objects end |
#parents ⇒ Object (readonly)
Returns the value of attribute parents.
6 7 8 |
# File 'lib/active_api/collection.rb', line 6 def parents @parents end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
6 7 8 |
# File 'lib/active_api/collection.rb', line 6 def schema @schema end |