Class: Evervault::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/evervault/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject

Returns the value of attribute api_key.



5
6
7
# File 'lib/evervault/config.rb', line 5

def api_key
  @api_key
end

#app_idObject

Returns the value of attribute app_id.



5
6
7
# File 'lib/evervault/config.rb', line 5

def app_id
  @app_id
end

#base_urlObject

Returns the value of attribute base_url.



5
6
7
# File 'lib/evervault/config.rb', line 5

def base_url
  @base_url
end

#ca_hostObject

Returns the value of attribute ca_host.



5
6
7
# File 'lib/evervault/config.rb', line 5

def ca_host
  @ca_host
end

#curveObject

Returns the value of attribute curve.



5
6
7
# File 'lib/evervault/config.rb', line 5

def curve
  @curve
end

#relay_urlObject

Returns the value of attribute relay_url.



5
6
7
# File 'lib/evervault/config.rb', line 5

def relay_url
  @relay_url
end

#request_timeoutObject

Returns the value of attribute request_timeout.



5
6
7
# File 'lib/evervault/config.rb', line 5

def request_timeout
  @request_timeout
end