Class: Hungrytable::Request
- Inherits:
-
Object
- Object
- Hungrytable::Request
- Defined in:
- lib/hungrytable/request.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(uri, params = {}) ⇒ Request
constructor
A new instance of Request.
- #parsed_response ⇒ Object
Constructor Details
#initialize(uri, params = {}) ⇒ Request
Returns a new instance of Request.
3 4 5 6 |
# File 'lib/hungrytable/request.rb', line 3 def initialize uri, params={} @uri = Hungrytable::Config.base_url << uri @params = params end |
Instance Method Details
#parsed_response ⇒ Object
8 9 10 |
# File 'lib/hungrytable/request.rb', line 8 def parsed_response JSON.parse(response) end |