Class: User::SendPasswordReset

Inherits:
UserPlane::Command show all
Defined in:
app/models/user/send_password_reset.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from UserPlane::Command

#perform, #perform!, #perform_validations

Instance Attribute Details

#codeObject

Returns the value of attribute code.



4
5
6
# File 'app/models/user/send_password_reset.rb', line 4

def code
  @code
end

#identityObject

Returns the value of attribute identity.



5
6
7
# File 'app/models/user/send_password_reset.rb', line 5

def identity
  @identity
end

#verificationObject

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

Returns:

  • (Boolean)


13
14
15
# File 'app/models/user/send_password_reset.rb', line 13

def persisited?
  verification ? verification.persisted? : false
end