Module: Xhash

Defined in:
lib/xhash.rb,
lib/xhash/ocr.rb,
lib/xhash/sat.rb,
lib/xhash/error.rb,
lib/xhash/general.rb,
lib/xhash/version.rb,
lib/xhash/formatters.rb,
lib/xhash/structs/rfc.rb,
lib/xhash/structs/curp.rb,
lib/xhash/document_types.rb,
lib/xhash/error_messages.rb,
lib/xhash/client/json_api.rb,
lib/xhash/database_lookup.rb,
lib/xhash/structs/customer.rb,
lib/xhash/client/api_client.rb,
lib/xhash/structs/identification.rb,
lib/xhash/structs/proof_of_address.rb

Defined Under Namespace

Modules: DocumentType, ErrorMessage, Formatters, JsonApi Classes: ApiClient, CURP, Customer, DatabaseLookup, Error, General, Identification, InvalidFieldError, MalformedResponse, MissingRequiredFieldError, OCR, ProofOfAddress, RFC, SAT

Constant Summary collapse

VERSION =
'0.3.8'

Class Method Summary collapse

Class Method Details

.api_baseObject



28
29
30
# File 'lib/xhash.rb', line 28

def self.api_base
  @api_base
end

.api_base=(api_base) ⇒ Object



32
33
34
# File 'lib/xhash.rb', line 32

def self.api_base=(api_base)
  @api_base = api_base
end

.api_keyObject



36
37
38
# File 'lib/xhash.rb', line 36

def self.api_key
  @api_key
end

.api_key=(api_key) ⇒ Object



40
41
42
# File 'lib/xhash.rb', line 40

def self.api_key=(api_key)
  @api_key = api_key
end

.config {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Xhash)

    the object that the method was called on



24
25
26
# File 'lib/xhash.rb', line 24

def self.config
  yield self
end

.timeoutObject



44
45
46
# File 'lib/xhash.rb', line 44

def self.timeout
  @timeout
end

.timeout=(timeout) ⇒ Object



48
49
50
# File 'lib/xhash.rb', line 48

def self.timeout=(timeout)
  @timeout = timeout
end