Class: FuncRunner::Configuration
- Inherits:
-
Object
- Object
- FuncRunner::Configuration
- Defined in:
- lib/func_runner.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#assistant_id ⇒ Object
Returns the value of attribute assistant_id.
-
#auto_update ⇒ Object
Returns the value of attribute auto_update.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#polling_interval ⇒ Object
Returns the value of attribute polling_interval.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
20 21 22 23 24 25 26 |
# File 'lib/func_runner.rb', line 20 def initialize @api_key = ENV["FUNCRUNNER_API_KEY"] @assistant_id = nil @polling_interval = 5.0 @auto_update = true @logger = SemanticLogger["Func Runner Application"] end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
18 19 20 |
# File 'lib/func_runner.rb', line 18 def api_key @api_key end |
#assistant_id ⇒ Object
Returns the value of attribute assistant_id.
18 19 20 |
# File 'lib/func_runner.rb', line 18 def assistant_id @assistant_id end |
#auto_update ⇒ Object
Returns the value of attribute auto_update.
18 19 20 |
# File 'lib/func_runner.rb', line 18 def auto_update @auto_update end |
#logger ⇒ Object
Returns the value of attribute logger.
18 19 20 |
# File 'lib/func_runner.rb', line 18 def logger @logger end |
#polling_interval ⇒ Object
Returns the value of attribute polling_interval.
18 19 20 |
# File 'lib/func_runner.rb', line 18 def polling_interval @polling_interval end |