Class: User::ConfirmEmailAddress

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



7
8
9
# File 'app/models/user/confirm_email_address.rb', line 7

def code
  @code
end

#identityObject

Returns the value of attribute identity.



6
7
8
# File 'app/models/user/confirm_email_address.rb', line 6

def identity
  @identity
end

#verificationObject

Returns the value of attribute verification.



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

def verification
  @verification
end

Instance Method Details

#persisted?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'app/models/user/confirm_email_address.rb', line 22

def persisted?
  verification && verification.persisted?
end

#to_paramObject



18
19
20
# File 'app/models/user/confirm_email_address.rb', line 18

def to_param
  self.code
end