Class: Barbeque::Config
- Inherits:
-
Object
- Object
- Barbeque::Config
- Defined in:
- lib/barbeque/config.rb
Instance Attribute Summary collapse
-
#exception_handler ⇒ Object
Returns the value of attribute exception_handler.
-
#executor ⇒ Object
Returns the value of attribute executor.
-
#executor_options ⇒ Object
Returns the value of attribute executor_options.
-
#maximum_concurrent_executions ⇒ Object
Returns the value of attribute maximum_concurrent_executions.
-
#runner_wait_seconds ⇒ Object
Returns the value of attribute runner_wait_seconds.
-
#sqs_receive_message_wait_time ⇒ Object
Returns the value of attribute sqs_receive_message_wait_time.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(options = {}) ⇒ Config
Returns a new instance of Config.
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/barbeque/config.rb', line 8 def initialize( = {}) .each do |key, value| if respond_to?("#{key}=") public_send("#{key}=", value) else raise KeyError.new("Unexpected option '#{key}' was specified.") end end .symbolize_keys! end |
Instance Attribute Details
#exception_handler ⇒ Object
Returns the value of attribute exception_handler.
6 7 8 |
# File 'lib/barbeque/config.rb', line 6 def exception_handler @exception_handler end |
#executor ⇒ Object
Returns the value of attribute executor.
6 7 8 |
# File 'lib/barbeque/config.rb', line 6 def executor @executor end |
#executor_options ⇒ Object
Returns the value of attribute executor_options.
6 7 8 |
# File 'lib/barbeque/config.rb', line 6 def @executor_options end |
#maximum_concurrent_executions ⇒ Object
Returns the value of attribute maximum_concurrent_executions.
6 7 8 |
# File 'lib/barbeque/config.rb', line 6 def maximum_concurrent_executions @maximum_concurrent_executions end |
#runner_wait_seconds ⇒ Object
Returns the value of attribute runner_wait_seconds.
6 7 8 |
# File 'lib/barbeque/config.rb', line 6 def runner_wait_seconds @runner_wait_seconds end |
#sqs_receive_message_wait_time ⇒ Object
Returns the value of attribute sqs_receive_message_wait_time.
6 7 8 |
# File 'lib/barbeque/config.rb', line 6 def @sqs_receive_message_wait_time end |