Class: BunnyCarrot::Strategy::Base
- Inherits:
-
Object
- Object
- BunnyCarrot::Strategy::Base
- Includes:
- Logger
- Defined in:
- lib/bunny_carrot/strategy/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(args) ⇒ Base
constructor
A new instance of Base.
- #perform ⇒ Object
Methods included from 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
#perform ⇒ Object
14 15 16 |
# File 'lib/bunny_carrot/strategy/base.rb', line 14 def perform raise NotImplementedError end |