Exception: Greensky::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Greensky::Error
- Defined in:
- lib/greensky/error.rb
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(response = {}) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(response = {}) ⇒ Error
Returns a new instance of Error.
3 4 5 6 |
# File 'lib/greensky/error.rb', line 3 def initialize(response={}) @response = response super @response['message'] end |
Instance Method Details
#code ⇒ Object
8 9 10 |
# File 'lib/greensky/error.rb', line 8 def code @response['code'] end |