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, endpoint_name, require_param, required_param_validation, rest_api_params, 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, opts = {}) ⇒ Object



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

def self.post(params, opts = {})
  setup_file(params)
  send_request :post, '/card_scans.json', params, **opts
end