Class: DilisensePepClient::Configuration

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

Overview

Simple configuration management Stores basic settings needed for API communication

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



9
10
11
12
13
# File 'lib/dilisense_pep_client/configuration.rb', line 9

def initialize
  @base_url = "https://api.dilisense.com"
  @timeout = 30
  @api_key = ENV["DILISENSE_API_KEY"]
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



7
8
9
# File 'lib/dilisense_pep_client/configuration.rb', line 7

def api_key
  @api_key
end

#base_urlObject

Returns the value of attribute base_url.



7
8
9
# File 'lib/dilisense_pep_client/configuration.rb', line 7

def base_url
  @base_url
end

#timeoutObject

Returns the value of attribute timeout.



7
8
9
# File 'lib/dilisense_pep_client/configuration.rb', line 7

def timeout
  @timeout
end