Class: WscSdk::Configuration
- Inherits:
-
Object
- Object
- WscSdk::Configuration
- Defined in:
- lib/wsc_sdk/configuration.rb
Overview
A class to contain the configuration of the WscSdk::Client.
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Returns the value of attribute access_key.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#hostname ⇒ Object
Returns the value of attribute hostname.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_key ⇒ Object
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_key ⇒ Object
Returns the value of attribute api_key
10 11 12 |
# File 'lib/wsc_sdk/configuration.rb', line 10 def api_key @api_key end |
#hostname ⇒ Object
Returns the value of attribute hostname
10 11 12 |
# File 'lib/wsc_sdk/configuration.rb', line 10 def hostname @hostname end |
#logger ⇒ Object
Returns the value of attribute logger
10 11 12 |
# File 'lib/wsc_sdk/configuration.rb', line 10 def logger @logger end |
#version ⇒ Object
Returns the value of attribute version
10 11 12 |
# File 'lib/wsc_sdk/configuration.rb', line 10 def version @version end |