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

Instance Method Summary collapse

Instance Attribute Details

#collection_methodObject

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_rootObject

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_methodObject

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_rootObject

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

#scopesObject



15
16
17
# File 'lib/zendesk2/paged_collection.rb', line 15

def scopes
  @scopes ||= []
end