Class: Tochtli::Test::TestDeliveryInfo
- Inherits:
-
Object
- Object
- Tochtli::Test::TestDeliveryInfo
- Defined in:
- lib/tochtli/test/test_case.rb
Instance Attribute Summary collapse
-
#exchange ⇒ Object
readonly
Returns the value of attribute exchange.
-
#routing_key ⇒ Object
readonly
Returns the value of attribute routing_key.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(routing_key, exchange = 'TestExchange') ⇒ TestDeliveryInfo
constructor
A new instance of TestDeliveryInfo.
Constructor Details
#initialize(routing_key, exchange = 'TestExchange') ⇒ TestDeliveryInfo
Returns a new instance of TestDeliveryInfo.
151 152 153 154 |
# File 'lib/tochtli/test/test_case.rb', line 151 def initialize(routing_key, exchange='TestExchange') @routing_key = routing_key @exchange = exchange end |
Instance Attribute Details
#exchange ⇒ Object (readonly)
Returns the value of attribute exchange.
149 150 151 |
# File 'lib/tochtli/test/test_case.rb', line 149 def exchange @exchange end |
#routing_key ⇒ Object (readonly)
Returns the value of attribute routing_key.
149 150 151 |
# File 'lib/tochtli/test/test_case.rb', line 149 def routing_key @routing_key end |
Instance Method Details
#[](key) ⇒ Object
156 157 158 |
# File 'lib/tochtli/test/test_case.rb', line 156 def [](key) send(key) end |