Class: Fluffle::Testing::Loopback::Channel
- Inherits:
-
Object
- Object
- Fluffle::Testing::Loopback::Channel
- Defined in:
- lib/fluffle/testing.rb
Instance Method Summary collapse
- #default_exchange ⇒ Object
-
#initialize(server) ⇒ Channel
constructor
A new instance of Channel.
- #queue(name, **opts) ⇒ Object
- #work_pool ⇒ Object
Constructor Details
#initialize(server) ⇒ Channel
Returns a new instance of Channel.
88 89 90 |
# File 'lib/fluffle/testing.rb', line 88 def initialize(server) @server = server end |
Instance Method Details
#default_exchange ⇒ Object
92 93 94 |
# File 'lib/fluffle/testing.rb', line 92 def default_exchange @default_exchange ||= Exchange.new(@server) end |
#queue(name, **opts) ⇒ Object
100 101 102 103 104 |
# File 'lib/fluffle/testing.rb', line 100 def queue(name, **opts) opts = opts.merge server: @server Queue.new name, opts end |
#work_pool ⇒ Object
96 97 98 |
# File 'lib/fluffle/testing.rb', line 96 def work_pool @work_pool ||= WorkPool.new end |