Module: Zendesk2::PagedCollection::ClassMethods
- Defined in:
- lib/zendesk2/paged_collection.rb
Overview
add methods for explicitly defining constants within the collection response
Instance Attribute Summary collapse
-
#collection_method ⇒ Object
Returns the value of attribute collection_method.
-
#collection_root ⇒ Object
Returns the value of attribute collection_root.
-
#model_method ⇒ Object
Returns the value of attribute model_method.
-
#model_root ⇒ Object
Returns the value of attribute model_root.
Instance Method Summary collapse
Instance Attribute Details
#collection_method ⇒ Object
Returns the value of attribute collection_method.
13 14 15 |
# File 'lib/zendesk2/paged_collection.rb', line 13 def collection_method @collection_method end |
#collection_root ⇒ Object
Returns the value of attribute collection_root.
13 14 15 |
# File 'lib/zendesk2/paged_collection.rb', line 13 def collection_root @collection_root end |
#model_method ⇒ Object
Returns the value of attribute model_method.
13 14 15 |
# File 'lib/zendesk2/paged_collection.rb', line 13 def model_method @model_method end |
#model_root ⇒ Object
Returns the value of attribute model_root.
13 14 15 |
# File 'lib/zendesk2/paged_collection.rb', line 13 def model_root @model_root end |
Instance Method Details
#scopes ⇒ Object
15 16 17 |
# File 'lib/zendesk2/paged_collection.rb', line 15 def scopes @scopes ||= [] end |