Class: Zombees::HoneyComb

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config) ⇒ HoneyComb

Returns a new instance of HoneyComb.



13
14
15
16
# File 'lib/zombees/honey_comb.rb', line 13

def initialize(config)
  @config = config
  Connection.import_key_pair(config)
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



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

def config
  @config
end

Instance Method Details

#connectionObject



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

def connection
  Connection.new(config)
end

#workerObject



9
10
11
# File 'lib/zombees/honey_comb.rb', line 9

def worker
  Worker.new(connection)
end