Class: EmailVerificationToken

Inherits:
SecureToken
  • Object
show all
Defined in:
app/models/user/email_verification_token.rb

Constant Summary collapse

EMAIL_NAME_REGEX =
'[\w\.%\+\-]+'.freeze
DOMAIN_HEAD_REGEX =
'(?:[A-Z0-9\-]+\.)+'.freeze
DOMAIN_TLD_REGEX =
'(?:[A-Z]{2}|com|org|net|edu|gov|mil|biz|info|mobi|name|aero|jobs|museum)'.freeze
EMAIL_REGEX =
/\A#{EMAIL_NAME_REGEX}@#{DOMAIN_HEAD_REGEX}#{DOMAIN_TLD_REGEX}\z/i

Instance Attribute Summary collapse

Instance Attribute Details

#emailObject

Returns the value of attribute email.



4
5
6
# File 'app/models/user/email_verification_token.rb', line 4

def email
  @email
end