Class: Barbeque::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  options.each do |key, value|
    if respond_to?("#{key}=")
      public_send("#{key}=", value)
    else
      raise KeyError.new("Unexpected option '#{key}' was specified.")
    end
  end
  executor_options.symbolize_keys!
end

Instance Attribute Details

#exception_handlerObject

Returns the value of attribute exception_handler.



6
7
8
# File 'lib/barbeque/config.rb', line 6

def exception_handler
  @exception_handler
end

#executorObject

Returns the value of attribute executor.



6
7
8
# File 'lib/barbeque/config.rb', line 6

def executor
  @executor
end

#executor_optionsObject

Returns the value of attribute executor_options.



6
7
8
# File 'lib/barbeque/config.rb', line 6

def executor_options
  @executor_options
end

#maximum_concurrent_executionsObject

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_secondsObject

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_timeObject

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
  @sqs_receive_message_wait_time
end