lib/adp-downloader.rb in adp-downloader-0.1.4 vs lib/adp-downloader.rb in adp-downloader-0.2.0

- old
+ new

@@ -1,13 +1,13 @@ -require 'adp-downloader/downloader' -require 'adp-downloader/http_client' -require 'adp-downloader/pay_statement' +require "adp-downloader/downloader" +require "adp-downloader/http_client" module ADPDownloader def self.download begin downloader = Downloader.new(HttpClient.new) - downloader.get_all_statements + downloader.get_all_tax_statements + downloader.get_all_pay_statements rescue Exception => e path = log_exception_to_file(e) puts "An error ocurred: #{e}" puts "Details were logged to #{path}" exit 1