Class: RockOAuth::Provider::Error
- Inherits:
-
Object
- Object
- RockOAuth::Provider::Error
- Defined in:
- lib/rockoauth/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.
5 6 7 |
# File 'lib/rockoauth/provider/error.rb', line 5 def initialize( = nil) @message = end |
Instance Method Details
#error ⇒ Object
9 10 11 |
# File 'lib/rockoauth/provider/error.rb', line 9 def error INVALID_REQUEST end |
#error_description ⇒ Object
13 14 15 |
# File 'lib/rockoauth/provider/error.rb', line 13 def error_description 'Bad request' + (@message ? ": #{@message}" : '') end |