Class: KcSdkCompany::Configuration
- Inherits:
-
Object
- Object
- KcSdkCompany::Configuration
- Defined in:
- lib/kc-sdk-company/configuration.rb
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#api_url ⇒ Object
Returns the value of attribute api_url.
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(options = {}) ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 |
# File 'lib/kc-sdk-company/configuration.rb', line 5 def initialize( = {}) .each do |key, value| instance_variable_set("@#{key}", value) end @api_url ||= 'https://cloud.kabob.io' end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
3 4 5 |
# File 'lib/kc-sdk-company/configuration.rb', line 3 def access_token @access_token end |
#api_url ⇒ Object
Returns the value of attribute api_url.
3 4 5 |
# File 'lib/kc-sdk-company/configuration.rb', line 3 def api_url @api_url end |
#logger ⇒ Object
Returns the value of attribute logger.
3 4 5 |
# File 'lib/kc-sdk-company/configuration.rb', line 3 def logger @logger end |