Exception: Payoneer::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Payoneer::ResponseError
- Defined in:
- lib/payoneer/response_error.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code:, body:) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(code:, body:) ⇒ ResponseError
Returns a new instance of ResponseError.
5 6 7 8 |
# File 'lib/payoneer/response_error.rb', line 5 def initialize(code:, body:) @code = code @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/payoneer/response_error.rb', line 3 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
3 4 5 |
# File 'lib/payoneer/response_error.rb', line 3 def code @code end |