Class: WalmartOpen::Request
- Inherits:
-
Object
- Object
- WalmartOpen::Request
- Defined in:
- lib/walmart_open/request.rb
Direct Known Subclasses
WalmartOpen::Requests::Feed, WalmartOpen::Requests::Lookup, WalmartOpen::Requests::Search, WalmartOpen::Requests::Taxonomy
Instance Attribute Summary collapse
-
#params ⇒ Object
Returns the value of attribute params.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Instance Attribute Details
#params ⇒ Object
Returns the value of attribute params.
7 8 9 |
# File 'lib/walmart_open/request.rb', line 7 def params @params end |
#path ⇒ Object
Returns the value of attribute path.
7 8 9 |
# File 'lib/walmart_open/request.rb', line 7 def path @path end |
Instance Method Details
#submit(client) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/walmart_open/request.rb', line 9 def submit(client) raise "@path must be specified" unless path response = HTTParty.public_send(request_method, build_url(client), (client)) verify_response(response) parse_response(response) end |