Class: DPLibrary::DocumentCollection

Inherits:
Base
  • Object
show all
Defined in:
lib/DPLibrary/document_collection.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Request

#get

Methods included from Connection

#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

#countObject

Returns the value of attribute count.



3
4
5
# File 'lib/DPLibrary/document_collection.rb', line 3

def count
  @count
end

#documentsObject

Returns the value of attribute documents.



3
4
5
# File 'lib/DPLibrary/document_collection.rb', line 3

def documents
  @documents
end

#limitObject

Returns the value of attribute limit.



3
4
5
# File 'lib/DPLibrary/document_collection.rb', line 3

def limit
  @limit
end

#offsetObject

Returns the value of attribute offset.



3
4
5
# File 'lib/DPLibrary/document_collection.rb', line 3

def offset
  @offset
end