Class: Tanker::PhoneNumberVerificationMethod

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(phone_number) ⇒ PhoneNumberVerificationMethod

Returns a new instance of PhoneNumberVerificationMethod.



44
45
46
47
# File 'lib/tanker/core/verification_method.rb', line 44

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

Instance Attribute Details

#phone_numberObject (readonly)

Returns the value of attribute phone_number.



42
43
44
# File 'lib/tanker/core/verification_method.rb', line 42

def phone_number
  @phone_number
end

Instance Method Details

#==(other) ⇒ Object



49
50
51
# File 'lib/tanker/core/verification_method.rb', line 49

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