def partial_email
      @partial_email ||=
          begin
            uid,_,domain = email.partition('@')
            if uid.length < 4
              uid = '*' * uid.length
            elsif uid.length < 8
              uid = uid[0..2] + ('*' * (uid.length - 3))
            else
              uid = uid[0..2] + ('*' * (uid.length - 6)) + uid[-3..-1]
            end
            "#{uid}@#{domain}"
          end
    end
def partial_email
      @partial_email ||=
          begin
            uid,_,domain = email.partition('@')
            if uid.length < 4
              uid = '*' * uid.length
            elsif uid.length < 8
              uid = uid[0..2] + ('*' * (uid.length - 3))
            else
              uid = uid[0..2] + ('*' * (uid.length - 6)) + uid[-3..-1]
            end
            "#{uid}@#{domain}"
          end
    end
Gets the email address in a partially obfuscated fashion.