Sha256: c249caa4f70b1f272a9acf3b2a2cca7e4118d5e84fc68e9eaac3b75a4288d59e

Contents?: true

Size: 366 Bytes

Versions: 5

Compression:

Stored size: 366 Bytes

Contents

module Eligible
  class Ocr < APIResource
    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 = {})
      setup_file(params)
      send_request :post, '/card_scans.json', params, **opts
    end

    private_class_method :setup_file
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
eligible-3.1.0.beta5 lib/eligible/ocr.rb
eligible-3.1.0.beta4 lib/eligible/ocr.rb
eligible-3.1.0.beta3 lib/eligible/ocr.rb
eligible-3.1.0.beta2 lib/eligible/ocr.rb
eligible-3.1.0.beta1 lib/eligible/ocr.rb