Exception: Apiwha::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Apiwha::Error
- Defined in:
- lib/apiwha/error.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(response) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object (also: #to_s)
Constructor Details
#initialize(response) ⇒ Error
Returns a new instance of Error.
6 7 8 |
# File 'lib/apiwha/error.rb', line 6 def initialize(response) @reason = response end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
4 5 6 |
# File 'lib/apiwha/error.rb', line 4 def reason @reason end |
Instance Method Details
#message ⇒ Object Also known as: to_s
10 11 12 |
# File 'lib/apiwha/error.rb', line 10 def "#{@reason}" end |