Class: Gitlab::Utils::Email::Symmetrical
- Inherits:
-
Masker
- Object
- Masker
- Gitlab::Utils::Email::Symmetrical
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
Instance Method Details
#local_part ⇒ Object
65
66
67
|
# File 'lib/gitlab/utils/email.rb', line 65
def local_part
mask(@local_part, visible_length: 2)
end
|
#sub_domain ⇒ Object
69
70
71
|
# File 'lib/gitlab/utils/email.rb', line 69
def sub_domain
mask(@sub_domain, visible_length: 1)
end
|