Class: Tanker::EmailVerification

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(email, verif_code) ⇒ EmailVerification

Returns a new instance of EmailVerification.



12
13
14
15
16
17
18
19
20
# File 'lib/tanker/core/verification.rb', line 12

def initialize(email, verif_code)
  super()

  ASSERT_UTF8.call(email)
  ASSERT_UTF8.call(verif_code)

  @email = email
  @verification_code = verif_code
end

Instance Attribute Details

#emailObject (readonly)

Returns the value of attribute email.



10
11
12
# File 'lib/tanker/core/verification.rb', line 10

def email
  @email
end

#verification_codeObject (readonly)

Returns the value of attribute verification_code.



10
11
12
# File 'lib/tanker/core/verification.rb', line 10

def verification_code
  @verification_code
end