Class: WscSdk::Configuration

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

Overview

A class to contain the configuration of the WscSdk::Client.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration



12
13
14
15
16
17
18
# File 'lib/wsc_sdk/configuration.rb', line 12

def initialize
  @api_key    = ENV["WSC_API_KEY"]
  @access_key = ENV["WSC_API_ACCESS_KEY"]
  @logger     = ::Logger.new(STDOUT)
  @hostname   = WscSdk::HOSTNAME
  @version    = WscSdk::PATH_VERSION
end

Instance Attribute Details

#access_keyObject

Returns the value of attribute access_key



10
11
12
# File 'lib/wsc_sdk/configuration.rb', line 10

def access_key
  @access_key
end

#api_keyObject

Returns the value of attribute api_key



10
11
12
# File 'lib/wsc_sdk/configuration.rb', line 10

def api_key
  @api_key
end

#hostnameObject

Returns the value of attribute hostname



10
11
12
# File 'lib/wsc_sdk/configuration.rb', line 10

def hostname
  @hostname
end

#loggerObject

Returns the value of attribute logger



10
11
12
# File 'lib/wsc_sdk/configuration.rb', line 10

def logger
  @logger
end

#versionObject

Returns the value of attribute version



10
11
12
# File 'lib/wsc_sdk/configuration.rb', line 10

def version
  @version
end