Module: KYCAID

Defined in:
lib/kycaid.rb,
lib/kycaid/file.rb,
lib/kycaid/client.rb,
lib/kycaid/address.rb,
lib/kycaid/version.rb,
lib/kycaid/document.rb,
lib/kycaid/response.rb,
lib/kycaid/applicant.rb,
lib/kycaid/verification.rb,
lib/kycaid/configuration.rb

Overview

KYCAID module contains wrappers around KYCAID API. See kycaid.com/

Defined Under Namespace

Modules: Client Classes: Address, Applicant, Configuration, Document, Error, File, Response, Unauthorized, Verification

Constant Summary collapse

VERSION =
"1.0.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



29
30
31
# File 'lib/kycaid.rb', line 29

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Coinfigure allows to change gem preferences. Check Configuration for the list of options.

Example

KYCAID.configure do |c|

c.authorization_token = '1MAR3SP3CTABL3t0k3N'
c.sandbox_mode = false
c.api_endpoint = 'https://api.kycaid.com/'
c.raise_errors = true

end

Yields:



41
42
43
44
# File 'lib/kycaid.rb', line 41

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration) if block_given?
end