Module: Zendesk2::Collection::ClassMethods
- Defined in:
- lib/zendesk2/collection.rb
Overview
Add interface methods for response constants
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.
- #namespace ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#collection_method ⇒ Object
Returns the value of attribute collection_method.
15 16 17 |
# File 'lib/zendesk2/collection.rb', line 15 def collection_method @collection_method end |
#collection_root ⇒ Object
Returns the value of attribute collection_root.
15 16 17 |
# File 'lib/zendesk2/collection.rb', line 15 def collection_root @collection_root end |
#model_method ⇒ Object
Returns the value of attribute model_method.
15 16 17 |
# File 'lib/zendesk2/collection.rb', line 15 def model_method @model_method end |
#model_root ⇒ Object
Returns the value of attribute model_root.
15 16 17 |
# File 'lib/zendesk2/collection.rb', line 15 def model_root @model_root end |
#namespace ⇒ Object
19 20 21 |
# File 'lib/zendesk2/collection.rb', line 19 def namespace @namespace || model_root end |
Instance Method Details
#scopes ⇒ Object
23 24 25 |
# File 'lib/zendesk2/collection.rb', line 23 def scopes @scopes ||= [] end |