Class: Trulioo::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/trulioo/client.rb

Overview

Trulioo::Client handles the Connector and the different API endpoints for easy access.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(settings = Trulioo.settings) ⇒ Client

Returns a new instance of Client.



12
13
14
15
16
17
# File 'lib/trulioo/client.rb', line 12

def initialize(settings = Trulioo.settings)
  @connector = Trulioo::Connector.new(settings)
  @configuration = Trulioo::API::Configuration.new(self)
  @connection = Trulioo::API::Connection.new(self)
  @verifications = Trulioo::API::Verifications.new(self)
end

Instance Attribute Details

#configurationObject (readonly)

Returns the value of attribute configuration.



10
11
12
# File 'lib/trulioo/client.rb', line 10

def configuration
  @configuration
end

#connectionObject (readonly)

Returns the value of attribute connection.



10
11
12
# File 'lib/trulioo/client.rb', line 10

def connection
  @connection
end

#connectorObject (readonly)

Returns the value of attribute connector.



10
11
12
# File 'lib/trulioo/client.rb', line 10

def connector
  @connector
end

#verificationsObject (readonly)

Returns the value of attribute verifications.



10
11
12
# File 'lib/trulioo/client.rb', line 10

def verifications
  @verifications
end