Exception: InvisibleHand::Error::APIError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/invisiblehand/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, url, raw_response) ⇒ APIError

Returns a new instance of APIError.



16
17
18
19
20
21
# File 'lib/invisiblehand/errors.rb', line 16

def initialize message, url, raw_response
  super message

  @url          = url
  @raw_response = raw_response
end

Instance Attribute Details

#raw_responseObject

Returns the value of attribute raw_response.



14
15
16
# File 'lib/invisiblehand/errors.rb', line 14

def raw_response
  @raw_response
end

#urlObject

Returns the value of attribute url.



14
15
16
# File 'lib/invisiblehand/errors.rb', line 14

def url
  @url
end