Class: DPLibrary::DocumentCollection
- Defined in:
- lib/DPLibrary/document_collection.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#documents ⇒ Object
Returns the value of attribute documents.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#offset ⇒ Object
Returns the value of attribute offset.
Instance Method Summary collapse
-
#initialize(parameters) ⇒ DocumentCollection
constructor
A new instance of DocumentCollection.
Methods included from Request
Methods included from Connection
Constructor Details
#initialize(parameters) ⇒ DocumentCollection
Returns a new instance of DocumentCollection.
8 9 10 11 12 13 14 |
# File 'lib/DPLibrary/document_collection.rb', line 8 def initialize(parameters) json_response = find(parameters) response_values = super(json_response) set_method(response_values) end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
3 4 5 |
# File 'lib/DPLibrary/document_collection.rb', line 3 def count @count end |
#documents ⇒ Object
Returns the value of attribute documents.
3 4 5 |
# File 'lib/DPLibrary/document_collection.rb', line 3 def documents @documents end |
#limit ⇒ Object
Returns the value of attribute limit.
3 4 5 |
# File 'lib/DPLibrary/document_collection.rb', line 3 def limit @limit end |
#offset ⇒ Object
Returns the value of attribute offset.
3 4 5 |
# File 'lib/DPLibrary/document_collection.rb', line 3 def offset @offset end |