Class: Tanker::PhoneNumberVerificationMethod
- Inherits:
-
VerificationMethod
- Object
- VerificationMethod
- Tanker::PhoneNumberVerificationMethod
- Defined in:
- lib/tanker/core/verification_method.rb
Instance Attribute Summary collapse
-
#phone_number ⇒ Object
readonly
Returns the value of attribute phone_number.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(phone_number) ⇒ PhoneNumberVerificationMethod
constructor
A new instance of PhoneNumberVerificationMethod.
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_number ⇒ Object (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 |