Class: Eligible::Ocr

Inherits:
APIResource show all
Defined in:
lib/eligible/ocr.rb

Instance Attribute Summary

Attributes inherited from EligibleObject

#api_key, #eligible_id

Class Method Summary collapse

Methods inherited from APIResource

api_url, class_name, require_param, send_request, url

Methods inherited from EligibleObject

#[], #[]=, construct_from, #each, #error, #initialize, #keys, #refresh_from, #to_hash, #to_json, #values

Constructor Details

This class inherits a constructor from Eligible::EligibleObject

Class Method Details

.post(params, api_key = nil) ⇒ Object



8
9
10
11
# File 'lib/eligible/ocr.rb', line 8

def self.post(params, api_key = nil)
  setup_file(params)
  send_request(:post, '/card_scans.json', api_key, **params)
end