Class: BankCrawlers::Hapoalim::Crawler

Inherits:
Object
  • Object
show all
Includes:
Capybara::DSL
Defined in:
lib/bank_crawlers/hapoalim/crawler.rb

Constant Summary collapse

BASE_URL =
"https://login.bankhapoalim.co.il/cgi-bin/poalwwwc"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*params) ⇒ Crawler

Returns a new instance of Crawler.



14
15
16
17
18
19
# File 'lib/bank_crawlers/hapoalim/crawler.rb', line 14

def initialize *params
  @user_name, @password = params
  Capybara.run_server = false
  Capybara.current_driver = :poltergeist
  Capybara.app_host = BASE_URL
end

Instance Attribute Details

#passwordObject (readonly)

Returns the value of attribute password.



13
14
15
# File 'lib/bank_crawlers/hapoalim/crawler.rb', line 13

def password
  @password
end

#user_nameObject (readonly)

Returns the value of attribute user_name.



13
14
15
# File 'lib/bank_crawlers/hapoalim/crawler.rb', line 13

def user_name
  @user_name
end

Instance Method Details

#transaction_tableObject



21
22
23
24
# File 'lib/bank_crawlers/hapoalim/crawler.rb', line 21

def transaction_table
  
  iframe_body
end