Class: FuncRunner::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_keyObject

Returns the value of attribute api_key.



18
19
20
# File 'lib/func_runner.rb', line 18

def api_key
  @api_key
end

#assistant_idObject

Returns the value of attribute assistant_id.



18
19
20
# File 'lib/func_runner.rb', line 18

def assistant_id
  @assistant_id
end

#auto_updateObject

Returns the value of attribute auto_update.



18
19
20
# File 'lib/func_runner.rb', line 18

def auto_update
  @auto_update
end

#loggerObject

Returns the value of attribute logger.



18
19
20
# File 'lib/func_runner.rb', line 18

def logger
  @logger
end

#polling_intervalObject

Returns the value of attribute polling_interval.



18
19
20
# File 'lib/func_runner.rb', line 18

def polling_interval
  @polling_interval
end