Class: Datafiniti::Products
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#preview ⇒ Object
readonly
Returns the value of attribute preview.
-
#records ⇒ Object
readonly
Returns the value of attribute records.
-
#response ⇒ Object
Returns the value of attribute response.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Attributes inherited from Api
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Products
constructor
A new instance of Products.
Methods inherited from Api
#default_to_csv, #default_to_json, #download, #method_missing, #solr_query, #where
Constructor Details
#initialize(args = {}) ⇒ Products
Returns a new instance of Products.
13 14 15 16 |
# File 'lib/datafiniti/products.rb', line 13 def initialize(args={}) @format = "json" super(args) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Datafiniti::Api
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
7 8 9 |
# File 'lib/datafiniti/products.rb', line 7 def format @format end |
#preview ⇒ Object (readonly)
Returns the value of attribute preview.
11 12 13 |
# File 'lib/datafiniti/products.rb', line 11 def preview @preview end |
#records ⇒ Object (readonly)
Returns the value of attribute records.
9 10 11 |
# File 'lib/datafiniti/products.rb', line 9 def records @records end |
#response ⇒ Object
Returns the value of attribute response.
8 9 10 |
# File 'lib/datafiniti/products.rb', line 8 def response @response end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
10 11 12 |
# File 'lib/datafiniti/products.rb', line 10 def total @total end |