Exception: WineBouncer::Errors::OAuthUnauthorizedError
- Inherits:
-
StandardError
- Object
- StandardError
- WineBouncer::Errors::OAuthUnauthorizedError
- Defined in:
- lib/wine_bouncer/errors.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ OAuthUnauthorizedError
constructor
A new instance of OAuthUnauthorizedError.
Constructor Details
#initialize(response) ⇒ OAuthUnauthorizedError
Returns a new instance of OAuthUnauthorizedError.
9 10 11 12 |
# File 'lib/wine_bouncer/errors.rb', line 9 def initialize(response) super(response.try(:description)) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
8 9 10 |
# File 'lib/wine_bouncer/errors.rb', line 8 def response @response end |