Class: User::ResetPassword

Inherits:
UserPlane::Command show all
Includes:
ActiveModel::Validations::Callbacks
Defined in:
app/models/user/reset_password.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.



8
9
10
# File 'app/models/user/reset_password.rb', line 8

def code
  @code
end

#identityObject

Returns the value of attribute identity.



10
11
12
# File 'app/models/user/reset_password.rb', line 10

def identity
  @identity
end

#verificationObject

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

Returns:

  • (Boolean)


25
26
27
# File 'app/models/user/reset_password.rb', line 25

def persisted?
  verification && verification.persisted?
end

#to_paramObject



21
22
23
# File 'app/models/user/reset_password.rb', line 21

def to_param
  self.code
end