Exception: WineBouncer::Errors::OAuthUnauthorizedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/wine_bouncer/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responseObject (readonly)

Returns the value of attribute response.



8
9
10
# File 'lib/wine_bouncer/errors.rb', line 8

def response
  @response
end