Exception: AlterEgo::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- AlterEgo::APIError
- Defined in:
- lib/alterego.rb
Instance Method Summary collapse
-
#initialize(response) ⇒ APIError
constructor
:nodoc:.
Constructor Details
#initialize(response) ⇒ APIError
:nodoc:
77 78 79 80 |
# File 'lib/alterego.rb', line 77 def initialize(response) # :nodoc: error = JSON.parse(response) super "<#{error['code']}> #{error['name']}: #{error['message']}" end |