Class: Doorkeeper::OAuth::Error

Inherits:
Struct
  • Object
show all
Defined in:
lib/doorkeeper/oauth/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name


3
4
5
# File 'lib/doorkeeper/oauth/error.rb', line 3

def name
  @name
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state


3
4
5
# File 'lib/doorkeeper/oauth/error.rb', line 3

def state
  @state
end

Instance Method Details

#descriptionObject


4
5
6
# File 'lib/doorkeeper/oauth/error.rb', line 4

def description
  I18n.translate name, scope: [:doorkeeper, :errors, :messages]
end