Class: Acfs::Collection
- Inherits:
-
Delegator
- Object
- Delegator
- Acfs::Collection
- Defined in:
- lib/acfs/collection.rb
Instance Method Summary collapse
- #__getobj__ ⇒ Object
- #__setobj__(obj) ⇒ Object
-
#initialize(resource_class) ⇒ Collection
constructor
A new instance of Collection.
Methods included from Acfs::Collections::Paginatable
#first_page, #last_page, #next_page, #page, #prev_page, #process_response
Methods included from Util::Callbacks
Methods included from Resource::Loadable
Constructor Details
#initialize(resource_class) ⇒ Collection
Returns a new instance of Collection.
14 15 16 17 18 |
# File 'lib/acfs/collection.rb', line 14 def initialize(resource_class) super([]) @resource_class = resource_class end |
Instance Method Details
#__getobj__ ⇒ Object
20 21 22 |
# File 'lib/acfs/collection.rb', line 20 def __getobj__ @models end |
#__setobj__(obj) ⇒ Object
24 25 26 |
# File 'lib/acfs/collection.rb', line 24 def __setobj__(obj) @models = obj end |