Class: GVIVE::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/gvive/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
10
11
12
# File 'lib/gvive/configuration.rb', line 5

def initialize
  @base_url       = 'https://gvivegh.com:1355/gvivewar' # GVIVE Base Endpoint
  @api_key        = ENV['GVIVE_API_KEY'] # GVIVE APIKey
  @username       = ENV['GVIVE_USERNAME'] # GVIVE Username
  @voter_path     = '/voter' # Voter ID Veriification path
  @passport_path  = '/passport' # Passport Veriification path
  @driver_path    = '/driver' # Driver License Veriification path
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



3
4
5
# File 'lib/gvive/configuration.rb', line 3

def api_key
  @api_key
end

#base_urlObject

Returns the value of attribute base_url.



3
4
5
# File 'lib/gvive/configuration.rb', line 3

def base_url
  @base_url
end

#driver_pathObject

Returns the value of attribute driver_path.



3
4
5
# File 'lib/gvive/configuration.rb', line 3

def driver_path
  @driver_path
end

#passport_pathObject

Returns the value of attribute passport_path.



3
4
5
# File 'lib/gvive/configuration.rb', line 3

def passport_path
  @passport_path
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/gvive/configuration.rb', line 3

def username
  @username
end

#voter_pathObject

Returns the value of attribute voter_path.



3
4
5
# File 'lib/gvive/configuration.rb', line 3

def voter_path
  @voter_path
end