Method: Lorkhan::Response#initialize

Defined in:
lib/lorkhan/response.rb

#initialize(raw) ⇒ Response

This class should never be instantiated directly.



11
12
13
14
15
16
# File 'lib/lorkhan/response.rb', line 11

def initialize(raw)
  @headers = raw.headers
  @body    = JSON.parse(raw.body)
rescue JSON::ParserError
  @body = nil
end