Class: Login

Inherits:
Object
  • Object
show all
Defined in:
lib/finviz_rails/login.rb

Instance Method Summary collapse

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

#runObject



8
9
10
11
12
13
14
# File 'lib/finviz_rails/login.rb', line 8

def run
  
  form['email'] = @username
  form['password'] = @password
  form.submit
  @agent
end