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.
112 113 114 |
# File 'lib/fluffle/testing.rb', line 112 def initialize(server) @server = server end |
Instance Method Details
#default_exchange ⇒ Object
116 117 118 |
# File 'lib/fluffle/testing.rb', line 116 def default_exchange @default_exchange ||= Exchange.new(@server) end |
#queue(name, **opts) ⇒ Object
124 125 126 127 128 |
# File 'lib/fluffle/testing.rb', line 124 def queue(name, **opts) opts = opts.merge server: @server Queue.new name, opts end |
#work_pool ⇒ Object
120 121 122 |
# File 'lib/fluffle/testing.rb', line 120 def work_pool @work_pool ||= WorkPool.new end |