Method: Cymon::Responses::Base#initialize
- Defined in:
- lib/cymon/responses/base.rb
#initialize(response) ⇒ Base
Returns a new instance of Base.
11 12 13 14 15 |
# File 'lib/cymon/responses/base.rb', line 11 def initialize(response) @raw_response = response @body = JSON.parse(response.body) @status = response.status end |