Class: ProxyTester::User
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- ProxyTester::User
- Defined in:
- lib/proxy_tester/models/user.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.load_from(source) ⇒ Object
9 10 11 |
# File 'lib/proxy_tester/models/user.rb', line 9 def self.load_from(source) source.create_users(self) end |
Instance Method Details
#to_login(options = {}) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/proxy_tester/models/user.rb', line 13 def to_login( = {}) result = [] result << name if .key? :cleartext result << password else result << '*' * 4 end result.join(':').shellescape end |