Method: Contacts::Base#login

Defined in:
lib/contacts/base.rb

#loginObject



50
51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/contacts/base.rb', line 50

def 
  @attempt ||= 0
  @attempt += 1
        
  if @attempt == 1
    @login
  else
    if @login.include?("@#{domain}")
      @login.sub("@#{domain}","")
    else
      "#{@login}@#{domain}"
    end
  end
end