Class: Songkick::OAuth2::Provider::Error
- Inherits:
-
Object
- Object
- Songkick::OAuth2::Provider::Error
- Defined in:
- lib/songkick/oauth2/provider/error.rb
Instance Method Summary collapse
- #error ⇒ Object
- #error_description ⇒ Object
-
#initialize(message = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil) ⇒ Error
Returns a new instance of Error.
6 7 8 |
# File 'lib/songkick/oauth2/provider/error.rb', line 6 def initialize( = nil) @message = end |
Instance Method Details
#error ⇒ Object
10 11 12 |
# File 'lib/songkick/oauth2/provider/error.rb', line 10 def error INVALID_REQUEST end |
#error_description ⇒ Object
14 15 16 |
# File 'lib/songkick/oauth2/provider/error.rb', line 14 def error_description 'Bad request' + (@message ? ": #{@message}" : '') end |