lib/eligible/ocr.rb in eligible-3.0.0.beta28 vs lib/eligible/ocr.rb in eligible-3.0.0

- old
+ new

@@ -3,12 +3,12 @@ def self.setup_file(params) file = Util.value(params, :file) params[:file] = File.new(file, 'rb') if file.is_a?(String) end - def self.post(params, opts = {}) + def self.post(params, api_key = nil) setup_file(params) - send_request :post, '/card_scans.json', params, opts + send_request(:post, '/card_scans.json', api_key, **params) end private_class_method :setup_file end end