Module: Zendesk2::Collection::ClassMethods

Defined in:
lib/zendesk2/collection.rb

Overview

Add interface methods for response constants

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#collection_methodObject

Returns the value of attribute collection_method.



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

def collection_method
  @collection_method
end

#collection_rootObject

Returns the value of attribute collection_root.



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

def collection_root
  @collection_root
end

#model_methodObject

Returns the value of attribute model_method.



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

def model_method
  @model_method
end

#model_rootObject

Returns the value of attribute model_root.



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

def model_root
  @model_root
end

#namespaceObject



19
20
21
# File 'lib/zendesk2/collection.rb', line 19

def namespace
  @namespace || model_root
end

Instance Method Details

#scopesObject



23
24
25
# File 'lib/zendesk2/collection.rb', line 23

def scopes
  @scopes ||= []
end