lib/banks/fio.rb in czech_banks_parser-0.0.1 vs lib/banks/fio.rb in czech_banks_parser-0.0.2

- old
+ new

@@ -4,10 +4,10 @@ def initialize(token, config) @config = config @token = token end - def transactions(time_start, time_end, iban) + def transactions(time_start, time_end, iban = nil) url = "#{@config[:base_uri]}/periods/#{@token}/#{time_start.strftime('%Y-%m-%d')}/#{time_end.strftime('%Y-%m-%d')}/transactions.json" trans = [] JSON.parse(RestClient.get(url), symbolize_names: true)[:accountStatement][:transactionList][:transaction].each do |tr| trans << {