Class: Tanker::PhoneNumberVerification

Inherits:
Verification show all
Defined in:
lib/tanker/core/verification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_numberObject (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_codeObject (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