Method: Chain::JSONError#initialize

Defined in:
lib/chain/errors.rb

#initialize(request_id, response) ⇒ JSONError

Returns a new instance of JSONError.



26
27
28
29
30
# File 'lib/chain/errors.rb', line 26

def initialize(request_id, response)
  super "Error decoding JSON response. Request-ID: #{request_id}"
  self.request_id = request_id
  self.response = response
end