Class: BankCrawlers::Hapoalim::Parser

Inherits:
Struct
  • Object
show all
Defined in:
lib/bank_crawlers/hapoalim/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#htmlObject

Returns the value of attribute html

Returns:

  • (Object)

    the current value of html



5
6
7
# File 'lib/bank_crawlers/hapoalim/parser.rb', line 5

def html
  @html
end

Instance Method Details

#balanceObject



12
13
14
# File 'lib/bank_crawlers/hapoalim/parser.rb', line 12

def balance
  transactions.last[:balance]
end

#transactionsObject



6
7
8
9
10
# File 'lib/bank_crawlers/hapoalim/parser.rb', line 6

def transactions
  table.map do |row|
    parse_row(row)
  end.compact
end