Class: DdrAux::Client::Response
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- DdrAux::Client::Response
- Defined in:
- lib/ddr_aux/client/response.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
7 8 9 10 |
# File 'lib/ddr_aux/client/response.rb', line 7 def initialize(response) response.value # raises exception if not 2XX response code super JSON.parse(response.body) end |