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


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

def name
  @name
end

#stateObject

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state


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

def state
  @state
end

Instance Method Details

#descriptionObject


6
7
8
9
10
11
12
# File 'lib/doorkeeper/oauth/error.rb', line 6

def description
  I18n.translate(
    name,
    scope: %i[doorkeeper errors messages],
    default: :server_error,
  )
end