Class: DdrAux::Client::Response

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/ddr_aux/client/response.rb

Instance Method Summary collapse

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