Class: Gitlab::Utils::Email::Symmetrical

Inherits:
Masker
  • Object
show all
Defined in:
lib/gitlab/utils/email.rb

Instance Attribute Summary

Attributes inherited from Masker

#at, #dot, #toplevel_domain

Instance Method Summary collapse

Methods inherited from Masker

#initialize, #masked

Constructor Details

This class inherits a constructor from Gitlab::Utils::Email::Masker

Instance Method Details

#local_partObject



65
66
67
# File 'lib/gitlab/utils/email.rb', line 65

def local_part
  mask(@local_part, visible_length: 2)
end

#sub_domainObject



69
70
71
# File 'lib/gitlab/utils/email.rb', line 69

def sub_domain
  mask(@sub_domain, visible_length: 1)
end