Class: Doorkeeper::OAuth::Error
- Inherits:
-
Struct
- Object
- Struct
- Doorkeeper::OAuth::Error
- Defined in:
- lib/doorkeeper/oauth/error.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#state ⇒ Object
Returns the value of attribute state.
-
#translate_options ⇒ Object
Returns the value of attribute translate_options.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
5 6 7 |
# File 'lib/doorkeeper/oauth/error.rb', line 5 def name @name end |
#state ⇒ Object
Returns the value of attribute state
5 6 7 |
# File 'lib/doorkeeper/oauth/error.rb', line 5 def state @state end |
#translate_options ⇒ Object
Returns the value of attribute translate_options
5 6 7 |
# File 'lib/doorkeeper/oauth/error.rb', line 5 def @translate_options end |
Instance Method Details
#description ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/doorkeeper/oauth/error.rb', line 6 def description = ( || {}).merge( scope: %i[doorkeeper errors messages], default: :server_error, ) I18n.translate(name, **) end |