Class: Viglink::Configuration
- Inherits:
-
Object
- Object
- Viglink::Configuration
- Defined in:
- lib/viglink/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#debug_output ⇒ Object
Returns the value of attribute debug_output.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
Instance Method Summary collapse
-
#initialize(api_key: ENV['VIGLINK_API_KEY'], secret_key: ENV['VIGLINK_SECRET_KEY'], debug_output: false) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(api_key: ENV['VIGLINK_API_KEY'], secret_key: ENV['VIGLINK_SECRET_KEY'], debug_output: false) ⇒ Configuration
Returns a new instance of Configuration.
23 24 25 26 27 28 29 |
# File 'lib/viglink/configuration.rb', line 23 def initialize(api_key: ENV['VIGLINK_API_KEY'], secret_key: ENV['VIGLINK_SECRET_KEY'], debug_output: false) @api_key = api_key @secret_key = secret_key @debug_output = debug_output end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
21 22 23 |
# File 'lib/viglink/configuration.rb', line 21 def api_key @api_key end |
#debug_output ⇒ Object
Returns the value of attribute debug_output.
21 22 23 |
# File 'lib/viglink/configuration.rb', line 21 def debug_output @debug_output end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
21 22 23 |
# File 'lib/viglink/configuration.rb', line 21 def secret_key @secret_key end |