Class: Tanker::PhoneNumberVerification
- Inherits:
-
Verification
- Object
- Verification
- Tanker::PhoneNumberVerification
- Defined in:
- lib/tanker/core/verification.rb
Instance Attribute Summary collapse
-
#phone_number ⇒ Object
readonly
Returns the value of attribute phone_number.
-
#verification_code ⇒ Object
readonly
Returns the value of attribute verification_code.
Instance Method Summary collapse
-
#initialize(phone_number, verif_code) ⇒ PhoneNumberVerification
constructor
A new instance of PhoneNumberVerification.
Constructor Details
#initialize(phone_number, verif_code) ⇒ PhoneNumberVerification
Returns a new instance of PhoneNumberVerification.
66 67 68 69 70 71 72 73 74 |
# File 'lib/tanker/core/verification.rb', line 66 def initialize(phone_number, verif_code) super() ASSERT_UTF8.call(phone_number) ASSERT_UTF8.call(verif_code) @phone_number = phone_number @verification_code = verif_code end |
Instance Attribute Details
#phone_number ⇒ Object (readonly)
Returns the value of attribute phone_number.
64 65 66 |
# File 'lib/tanker/core/verification.rb', line 64 def phone_number @phone_number end |
#verification_code ⇒ Object (readonly)
Returns the value of attribute verification_code.
64 65 66 |
# File 'lib/tanker/core/verification.rb', line 64 def verification_code @verification_code end |