Class: Tanker::EmailVerificationMethod

Inherits:
VerificationMethod show all
Defined in:
lib/tanker/core/verification_method.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(email) ⇒ EmailVerificationMethod

Returns a new instance of EmailVerificationMethod.



31
32
33
34
# File 'lib/tanker/core/verification_method.rb', line 31

def initialize(email)
  super()
  @email = email
end

Instance Attribute Details

#emailObject (readonly)

Returns the value of attribute email.



29
30
31
# File 'lib/tanker/core/verification_method.rb', line 29

def email
  @email
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
# File 'lib/tanker/core/verification_method.rb', line 36

def ==(other)
  super && email == other.email
end