Class: ApiMapper::Response
- Inherits:
-
Object
- Object
- ApiMapper::Response
- Defined in:
- lib/api_mapper/client.rb
Instance Method Summary collapse
- #body ⇒ Object
-
#initialize(raw) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(raw) ⇒ Response
Returns a new instance of Response.
114 115 116 |
# File 'lib/api_mapper/client.rb', line 114 def initialize(raw) @raw = raw end |
Instance Method Details
#body ⇒ Object
118 119 120 |
# File 'lib/api_mapper/client.rb', line 118 def body JSON.parse(@raw.body) end |