Exception: IpToEarth::APIException
- Inherits:
-
StandardError
- Object
- StandardError
- IpToEarth::APIException
- Defined in:
- lib/ip_to_earth/api_exception.rb
Instance Attribute Summary collapse
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
-
#response_code ⇒ Object
readonly
Returns the value of attribute response_code.
Instance Method Summary collapse
-
#initialize(reason, response_code, response_body) ⇒ APIException
constructor
A new instance of APIException.
Constructor Details
#initialize(reason, response_code, response_body) ⇒ APIException
Returns a new instance of APIException.
5 6 7 8 9 |
# File 'lib/ip_to_earth/api_exception.rb', line 5 def initialize(reason, response_code, response_body) super(reason) @response_code = response_code @response_body = response_body end |
Instance Attribute Details
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
3 4 5 |
# File 'lib/ip_to_earth/api_exception.rb', line 3 def response_body @response_body end |
#response_code ⇒ Object (readonly)
Returns the value of attribute response_code.
3 4 5 |
# File 'lib/ip_to_earth/api_exception.rb', line 3 def response_code @response_code end |