Class: Login
- Inherits:
-
Object
- Object
- Login
- Defined in:
- lib/finviz_rails/login.rb
Instance Method Summary collapse
-
#initialize(username, password, agent) ⇒ Login
constructor
A new instance of Login.
- #run ⇒ Object
Constructor Details
#initialize(username, password, agent) ⇒ Login
Returns a new instance of Login.
2 3 4 5 6 |
# File 'lib/finviz_rails/login.rb', line 2 def initialize(username, password, agent) @username = username @password = password @agent = agent end |
Instance Method Details
#run ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/finviz_rails/login.rb', line 8 def run go_to_login_page form['email'] = @username form['password'] = @password form.submit @agent end |