Exception: RademadeAdmin::Login::Error
- Inherits:
-
Exception
- Object
- Exception
- RademadeAdmin::Login::Error
- Defined in:
- app/services/login/error.rb
Instance Attribute Summary collapse
-
#field ⇒ Object
Returns the value of attribute field.
Instance Method Summary collapse
- #field_messages ⇒ Object
-
#initialize(message, field) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, field) ⇒ Error
Returns a new instance of Error.
8 9 10 11 |
# File 'app/services/login/error.rb', line 8 def initialize(, field) super @field = field end |
Instance Attribute Details
#field ⇒ Object
Returns the value of attribute field.
6 7 8 |
# File 'app/services/login/error.rb', line 6 def field @field end |
Instance Method Details
#field_messages ⇒ Object
13 14 15 |
# File 'app/services/login/error.rb', line 13 def { field.to_sym => } end |