Class: Songkick::OAuth2::Provider::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/songkick/oauth2/provider/error.rb

Instance Method Summary collapse

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(message = nil)
  @message = message
end

Instance Method Details

#errorObject


10
11
12
# File 'lib/songkick/oauth2/provider/error.rb', line 10

def error
  INVALID_REQUEST
end

#error_descriptionObject


14
15
16
# File 'lib/songkick/oauth2/provider/error.rb', line 14

def error_description
  'Bad request' + (@message ? ": #{@message}" : '')
end