Exception: Rack::OAuth2::Client::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Rack::OAuth2::Client::Error
- Defined in:
- lib/rack/oauth2/client/error.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, response) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(status, response) ⇒ Error
Returns a new instance of Error.
6 7 8 9 10 11 |
# File 'lib/rack/oauth2/client/error.rb', line 6 def initialize(status, response) @status = status @response = response = [response[:error], response[:error_description]].compact.join(' :: ') super end |
Instance Attribute Details
#response ⇒ Object
Returns the value of attribute response.
5 6 7 |
# File 'lib/rack/oauth2/client/error.rb', line 5 def response @response end |
#status ⇒ Object
Returns the value of attribute status.
5 6 7 |
# File 'lib/rack/oauth2/client/error.rb', line 5 def status @status end |