Class: User::ResetPassword
- Inherits:
-
UserPlane::Command
- Object
- Imperator::Command
- UserPlane::Command
- User::ResetPassword
- Includes:
- ActiveModel::Validations::Callbacks
- Defined in:
- app/models/user/reset_password.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#identity ⇒ Object
Returns the value of attribute identity.
-
#verification ⇒ Object
Returns the value of attribute verification.
Instance Method Summary collapse
Methods inherited from UserPlane::Command
#perform, #perform!, #perform_validations
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
8 9 10 |
# File 'app/models/user/reset_password.rb', line 8 def code @code end |
#identity ⇒ Object
Returns the value of attribute identity.
10 11 12 |
# File 'app/models/user/reset_password.rb', line 10 def identity @identity end |
#verification ⇒ Object
Returns the value of attribute verification.
9 10 11 |
# File 'app/models/user/reset_password.rb', line 9 def verification @verification end |
Instance Method Details
#persisted? ⇒ Boolean
25 26 27 |
# File 'app/models/user/reset_password.rb', line 25 def persisted? verification && verification.persisted? end |
#to_param ⇒ Object
21 22 23 |
# File 'app/models/user/reset_password.rb', line 21 def to_param self.code end |