Class: BunnyCarrot::Strategy::Base

Inherits:
Object
  • Object
show all
Includes:
Logger
Defined in:
lib/bunny_carrot/strategy/base.rb

Direct Known Subclasses

Block, Drop, RestartAndBlock

Instance Method Summary collapse

Methods included from Logger

included, #logger

Constructor Details

#initialize(args) ⇒ Base

Returns a new instance of Base.



6
7
8
9
10
11
12
# File 'lib/bunny_carrot/strategy/base.rb', line 6

def initialize(args)
  @queue_name       = args.fetch(:queue_name)
  @payload          = args.fetch(:payload)
  @headers          = args.fetch(:message_headers)
  @acknowledge_proc = args.fetch(:acknowledge_proc)
  post_initialize(args)
end

Instance Method Details

#performObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/bunny_carrot/strategy/base.rb', line 14

def perform
  raise NotImplementedError
end