Class: Vogogo::Client

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Risk::SupportedCountries

#get_country_codes

Methods included from Risk::Occupations

#get_occupations

Methods included from Risk::Customers

#get_customers

Methods included from Notifications::Events

#get_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

#httpObject

Returns the value of attribute http.



3
4
5
# File 'lib/vogogo/client.rb', line 3

def http
  @http
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/vogogo/client.rb', line 3

def status
  @status
end

#uriObject

Returns the value of attribute uri.



3
4
5
# File 'lib/vogogo/client.rb', line 3

def uri
  @uri
end