Class: Milo::Main
Defined Under Namespace
Classes: Response
Instance Attribute Summary collapse
-
#main_url ⇒ Object
Returns the value of attribute main_url.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#response_raw ⇒ Object
readonly
Returns the value of attribute response_raw.
Instance Method Summary collapse
-
#initialize(key, options = {}) ⇒ Main
constructor
A new instance of Main.
- #make_request(end_url) ⇒ Object
Methods included from Product
#get_product_by_id, #get_product_by_postal_code, #get_product_by_upc
Constructor Details
#initialize(key, options = {}) ⇒ Main
Returns a new instance of Main.
6 7 8 9 |
# File 'lib/milo/main.rb', line 6 def initialize(key, = {}) @key = key @options = end |
Instance Attribute Details
#main_url ⇒ Object
Returns the value of attribute main_url.
3 4 5 |
# File 'lib/milo/main.rb', line 3 def main_url @main_url end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
4 5 6 |
# File 'lib/milo/main.rb', line 4 def response @response end |
#response_raw ⇒ Object (readonly)
Returns the value of attribute response_raw.
4 5 6 |
# File 'lib/milo/main.rb', line 4 def response_raw @response_raw end |