Exception: MxitApi::RequestException
- Defined in:
- lib/mxit_api/request_exception.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Attributes inherited from Exception
Instance Method Summary collapse
-
#initialize(message, code) ⇒ RequestException
constructor
A new instance of RequestException.
Constructor Details
#initialize(message, code) ⇒ RequestException
Returns a new instance of RequestException.
4 5 6 7 |
# File 'lib/mxit_api/request_exception.rb', line 4 def initialize(, code) super() @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/mxit_api/request_exception.rb', line 3 def code @code end |