Class: Tanker::PreverifiedEmailVerificationMethod

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(preverified_email) ⇒ PreverifiedEmailVerificationMethod

Returns a new instance of PreverifiedEmailVerificationMethod.



57
58
59
60
# File 'lib/tanker/core/verification_method.rb', line 57

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

Instance Attribute Details

#preverified_emailObject (readonly)

Returns the value of attribute preverified_email.



55
56
57
# File 'lib/tanker/core/verification_method.rb', line 55

def preverified_email
  @preverified_email
end

Instance Method Details

#==(other) ⇒ Object



62
63
64
# File 'lib/tanker/core/verification_method.rb', line 62

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