Class: Trulioo::Client
- Inherits:
-
Object
- Object
- Trulioo::Client
- Defined in:
- lib/trulioo/client.rb
Overview
Trulioo::Client handles the Connector and the different API endpoints for easy access.
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#connection ⇒ Object
readonly
Returns the value of attribute connection.
-
#connector ⇒ Object
readonly
Returns the value of attribute connector.
-
#verifications ⇒ Object
readonly
Returns the value of attribute verifications.
Instance Method Summary collapse
-
#initialize(settings = Trulioo.settings) ⇒ Client
constructor
A new instance of Client.
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
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
10 11 12 |
# File 'lib/trulioo/client.rb', line 10 def configuration @configuration end |
#connection ⇒ Object (readonly)
Returns the value of attribute connection.
10 11 12 |
# File 'lib/trulioo/client.rb', line 10 def connection @connection end |
#connector ⇒ Object (readonly)
Returns the value of attribute connector.
10 11 12 |
# File 'lib/trulioo/client.rb', line 10 def connector @connector end |
#verifications ⇒ Object (readonly)
Returns the value of attribute verifications.
10 11 12 |
# File 'lib/trulioo/client.rb', line 10 def verifications @verifications end |