Exception: SimpleSpotify::Error::AuthorizationError
- Inherits:
-
StandardError
- Object
- StandardError
- SimpleSpotify::Error::AuthorizationError
- Defined in:
- lib/simplespotify/errors.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(body) ⇒ AuthorizationError
constructor
A new instance of AuthorizationError.
Constructor Details
#initialize(body) ⇒ AuthorizationError
Returns a new instance of AuthorizationError.
18 19 20 |
# File 'lib/simplespotify/errors.rb', line 18 def initialize body @message = body[:error_description] end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
17 18 19 |
# File 'lib/simplespotify/errors.rb', line 17 def @message end |