Class: Tochtli::Test::TestQueue
- Inherits:
-
Object
- Object
- Tochtli::Test::TestQueue
- Defined in:
- lib/tochtli/test/test_case.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#routing_key ⇒ Object
readonly
Returns the value of attribute routing_key.
Instance Method Summary collapse
- #bind(exchange, options) ⇒ Object
-
#initialize(channel, name, options) ⇒ TestQueue
constructor
A new instance of TestQueue.
- #subscribe(*args) ⇒ Object
- #subscribe_with(*args) ⇒ Object
Constructor Details
#initialize(channel, name, options) ⇒ TestQueue
Returns a new instance of TestQueue.
123 124 125 126 127 |
# File 'lib/tochtli/test/test_case.rb', line 123 def initialize(channel, name, ) @name = name @channel = channel @options = end |
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
121 122 123 |
# File 'lib/tochtli/test/test_case.rb', line 121 def channel @channel end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
121 122 123 |
# File 'lib/tochtli/test/test_case.rb', line 121 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
121 122 123 |
# File 'lib/tochtli/test/test_case.rb', line 121 def @options end |
#routing_key ⇒ Object (readonly)
Returns the value of attribute routing_key.
121 122 123 |
# File 'lib/tochtli/test/test_case.rb', line 121 def routing_key @routing_key end |
Instance Method Details
#bind(exchange, options) ⇒ Object
129 130 131 |
# File 'lib/tochtli/test/test_case.rb', line 129 def bind(exchange, ) @routing_key = [:routing_key] end |
#subscribe(*args) ⇒ Object
133 134 135 |
# File 'lib/tochtli/test/test_case.rb', line 133 def subscribe(*args) TestConsumer.new end |
#subscribe_with(*args) ⇒ Object
137 138 139 |
# File 'lib/tochtli/test/test_case.rb', line 137 def subscribe_with(*args) TestConsumer.new end |