Class: Vogogo::Client
- Inherits:
-
Object
- Object
- Vogogo::Client
- Includes:
- Notifications::Events, Risk::Customers, Risk::Documents, Risk::IndustryTypes, Risk::Occupations, Risk::PhoneNumbers, Risk::SupportedCountries
- Defined in:
- lib/vogogo/client.rb
Constant Summary collapse
- API_URI =
'https://api.vogogo.com/v3/'
Instance Attribute Summary collapse
-
#http ⇒ Object
Returns the value of attribute http.
-
#status ⇒ Object
Returns the value of attribute status.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(username = nil, password = nil) ⇒ Client
constructor
A new instance of Client.
Methods included from Risk::SupportedCountries
Methods included from Risk::Occupations
Methods included from Risk::Customers
Methods included from Notifications::Events
Constructor Details
#initialize(username = nil, password = nil) ⇒ Client
15 16 17 18 |
# File 'lib/vogogo/client.rb', line 15 def initialize(username = nil, password = nil) @username = username || ENV['VOGOGO_USERNAME'] @password = password || ENV['VOGOGO_PASSWORD'] end |
Instance Attribute Details
#http ⇒ Object
Returns the value of attribute http.
3 4 5 |
# File 'lib/vogogo/client.rb', line 3 def http @http end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/vogogo/client.rb', line 3 def status @status end |
#uri ⇒ Object
Returns the value of attribute uri.
3 4 5 |
# File 'lib/vogogo/client.rb', line 3 def uri @uri end |