Class: User::SendPasswordReset
- Inherits:
-
UserPlane::Command
- Object
- Imperator::Command
- UserPlane::Command
- User::SendPasswordReset
- Defined in:
- app/models/user/send_password_reset.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.
4 5 6 |
# File 'app/models/user/send_password_reset.rb', line 4 def code @code end |
#identity ⇒ Object
Returns the value of attribute identity.
5 6 7 |
# File 'app/models/user/send_password_reset.rb', line 5 def identity @identity end |
#verification ⇒ Object
Returns the value of attribute verification.
6 7 8 |
# File 'app/models/user/send_password_reset.rb', line 6 def verification @verification end |
Instance Method Details
#email=(address) ⇒ Object
8 9 10 11 |
# File 'app/models/user/send_password_reset.rb', line 8 def email= address @identity = User::Identities::Email.find_by_address(address) @email = address end |
#persisited? ⇒ Boolean
13 14 15 |
# File 'app/models/user/send_password_reset.rb', line 13 def persisited? verification ? verification.persisted? : false end |