Class: Tochtli::Test::TestDeliveryInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/tochtli/test/test_case.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#exchangeObject (readonly)

Returns the value of attribute exchange.



149
150
151
# File 'lib/tochtli/test/test_case.rb', line 149

def exchange
  @exchange
end

#routing_keyObject (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