Exception: Ak4r::ApiException
- Inherits:
-
Exception
- Object
- Exception
- Ak4r::ApiException
- Defined in:
- lib/ak4r/api_exception.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(code, response) ⇒ ApiException
constructor
A new instance of ApiException.
Constructor Details
#initialize(code, response) ⇒ ApiException
5 6 7 8 |
# File 'lib/ak4r/api_exception.rb', line 5 def initialize(code, response) @code = code @response = response end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
2 3 4 |
# File 'lib/ak4r/api_exception.rb', line 2 def code @code end |
#response ⇒ Object
Returns the value of attribute response.
3 4 5 |
# File 'lib/ak4r/api_exception.rb', line 3 def response @response end |