Class: Tanker::PreverifiedPhoneNumberVerificationMethod

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(preverified_phone_number) ⇒ PreverifiedPhoneNumberVerificationMethod

Returns a new instance of PreverifiedPhoneNumberVerificationMethod.



70
71
72
73
# File 'lib/tanker/core/verification_method.rb', line 70

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

Instance Attribute Details

#preverified_phone_numberObject (readonly)

Returns the value of attribute preverified_phone_number.



68
69
70
# File 'lib/tanker/core/verification_method.rb', line 68

def preverified_phone_number
  @preverified_phone_number
end

Instance Method Details

#==(other) ⇒ Object



75
76
77
# File 'lib/tanker/core/verification_method.rb', line 75

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