Class: Evervault::Config
- Inherits:
-
Object
- Object
- Evervault::Config
- Defined in:
- lib/evervault/config.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#app_id ⇒ Object
Returns the value of attribute app_id.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#ca_host ⇒ Object
Returns the value of attribute ca_host.
-
#curve ⇒ Object
Returns the value of attribute curve.
-
#relay_url ⇒ Object
Returns the value of attribute relay_url.
-
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
Instance Method Summary collapse
-
#initialize(app_id:, api_key:) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(app_id:, api_key:) ⇒ Config
Returns a new instance of Config.
7 8 9 10 11 12 13 14 15 |
# File 'lib/evervault/config.rb', line 7 def initialize(app_id:, api_key:) @app_id = app_id @api_key = api_key @base_url = 'https://api.evervault.com/' @relay_url = 'https://relay.evervault.com:8443' @ca_host = 'https://ca.evervault.com' @request_timeout = 30 @curve = 'prime256v1' end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/evervault/config.rb', line 5 def api_key @api_key end |
#app_id ⇒ Object
Returns the value of attribute app_id.
5 6 7 |
# File 'lib/evervault/config.rb', line 5 def app_id @app_id end |
#base_url ⇒ Object
Returns the value of attribute base_url.
5 6 7 |
# File 'lib/evervault/config.rb', line 5 def base_url @base_url end |
#ca_host ⇒ Object
Returns the value of attribute ca_host.
5 6 7 |
# File 'lib/evervault/config.rb', line 5 def ca_host @ca_host end |
#curve ⇒ Object
Returns the value of attribute curve.
5 6 7 |
# File 'lib/evervault/config.rb', line 5 def curve @curve end |
#relay_url ⇒ Object
Returns the value of attribute relay_url.
5 6 7 |
# File 'lib/evervault/config.rb', line 5 def relay_url @relay_url end |
#request_timeout ⇒ Object
Returns the value of attribute request_timeout.
5 6 7 |
# File 'lib/evervault/config.rb', line 5 def request_timeout @request_timeout end |