Class: GVIVE::Configuration
- Inherits:
-
Object
- Object
- GVIVE::Configuration
- Defined in:
- lib/gvive/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#driver_path ⇒ Object
Returns the value of attribute driver_path.
-
#passport_path ⇒ Object
Returns the value of attribute passport_path.
-
#username ⇒ Object
Returns the value of attribute username.
-
#voter_path ⇒ Object
Returns the value of attribute voter_path.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/gvive/configuration.rb', line 3 def api_key @api_key end |
#base_url ⇒ Object
Returns the value of attribute base_url.
3 4 5 |
# File 'lib/gvive/configuration.rb', line 3 def base_url @base_url end |
#driver_path ⇒ Object
Returns the value of attribute driver_path.
3 4 5 |
# File 'lib/gvive/configuration.rb', line 3 def driver_path @driver_path end |
#passport_path ⇒ Object
Returns the value of attribute passport_path.
3 4 5 |
# File 'lib/gvive/configuration.rb', line 3 def passport_path @passport_path end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/gvive/configuration.rb', line 3 def username @username end |
#voter_path ⇒ Object
Returns the value of attribute voter_path.
3 4 5 |
# File 'lib/gvive/configuration.rb', line 3 def voter_path @voter_path end |