Class: SwarmOptions

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ SwarmOptions

Returns a new instance of SwarmOptions.



3
4
5
# File 'lib/zombees/swarm_options.rb', line 3

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



2
3
4
# File 'lib/zombees/swarm_options.rb', line 2

def options
  @options
end

Instance Method Details

#commandObject



11
12
13
# File 'lib/zombees/swarm_options.rb', line 11

def command
  options[:command]
end

#honey_combObject



15
16
17
# File 'lib/zombees/swarm_options.rb', line 15

def honey_comb
  options[:honey_comb]
end

#worker_countObject



7
8
9
# File 'lib/zombees/swarm_options.rb', line 7

def worker_count
  options[:worker_count]
end