Exception: Financo::N26::ClientError
- Inherits:
-
StandardError
- Object
- StandardError
- Financo::N26::ClientError
- Defined in:
- lib/financo/n26/client_error.rb
Overview
ClientError
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) ⇒ ClientError
constructor
A new instance of ClientError.
- #to_s ⇒ Object
Constructor Details
#initialize(code, body) ⇒ ClientError
Returns a new instance of ClientError.
9 10 11 12 13 14 |
# File 'lib/financo/n26/client_error.rb', line 9 def initialize(code, body) super("#{code}\n#{body}") @code = code @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
7 8 9 |
# File 'lib/financo/n26/client_error.rb', line 7 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
7 8 9 |
# File 'lib/financo/n26/client_error.rb', line 7 def code @code end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/financo/n26/client_error.rb', line 16 def to_s puts "code [#{@code}], body [#{@body}]" end |