Module: Alloy::KYC

Defined in:
lib/alloy/kyc.rb,
lib/alloy/kyc/version.rb,
lib/alloy/kyc/evaluation.rb,
lib/alloy/kyc/bearer_token.rb,
lib/alloy/kyc/backends/mock.rb,
lib/alloy/kyc/configuration.rb,
lib/alloy/kyc/backends/remote.rb

Defined Under Namespace

Modules: Backends Classes: BearerToken, Configuration, Evaluation

Constant Summary collapse

VERSION =
"0.1.4"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



16
17
18
# File 'lib/alloy/kyc.rb', line 16

def configuration
  @configuration
end

Class Method Details

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

Yields:



19
20
21
22
# File 'lib/alloy/kyc.rb', line 19

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

.mock_mode!Object



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

def self.mock_mode!
  self.configuration.backend = Alloy::KYC::Backends::Mock.new
end