Exception: Doorkeeper::Errors::BaseResponseError

Inherits:
DoorkeeperError
  • Object
show all
Defined in:
lib/doorkeeper/errors.rb

Direct Known Subclasses

InvalidCodeChallengeMethod

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from DoorkeeperError

translate_options, #type

Constructor Details

#initialize(response) ⇒ BaseResponseError

Returns a new instance of BaseResponseError.



56
57
58
# File 'lib/doorkeeper/errors.rb', line 56

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



54
55
56
# File 'lib/doorkeeper/errors.rb', line 54

def response
  @response
end

Class Method Details

.name_for_responseObject



60
61
62
# File 'lib/doorkeeper/errors.rb', line 60

def self.name_for_response
  name.demodulize.underscore.to_sym
end