demo.rb in parseitc-0.1 vs demo.rb in parseitc-0.1.1
- old
+ new
@@ -1,10 +1,10 @@
require 'rubygems'
require 'lib/parseitc'
include ParseITC
begin
- report = TrasactionParser.new('demo1.txt')
+ report = TransactionParser.new('demo1.txt')
report.add_file('demo2.txt')
by_country = report.numbers_by_country
by_country.sort.each {|k, v| puts "#{k}: #{v}"}
by_date = report.numbers_by_date
by_date.sort.each {|k, v| puts "#{k}: #{v}"}