lib/ibanomat/client.rb in ibanomat-1.0.0 vs lib/ibanomat/client.rb in ibanomat-1.1.0

- old
+ new

@@ -1,13 +1,14 @@ require 'rest-client' require 'json' module Ibanomat - URL = 'http://www.sparkasse.de/firmenkunden/konto-karte/iban-resources/iban/iban.php' + URL = 'https://www.sparkasse-koelnbonn.de/module/iban/iban.php' def self.find(options) raise ArgumentError.new unless options.is_a?(Hash) raise ArgumentError.new('Option :bank_code is missing!') if options[:bank_code].empty? + raise ArgumentError.new('Option :bank_account_number is missing!') if options[:bank_account_number].empty? response = RestClient.get URL, { :params => { 'bank-code' => options[:bank_code], 'bank-account-number' => options[:bank_account_number]