Class: Tochtli::Test::TestMessageProperties

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reply_to, message_id = nil, correlation_id = nil) ⇒ TestMessageProperties

Returns a new instance of TestMessageProperties.



164
165
166
167
168
# File 'lib/tochtli/test/test_case.rb', line 164

def initialize(reply_to, message_id=nil, correlation_id=nil)
  @reply_to       = reply_to
  @message_id     = message_id
  @correlation_id = correlation_id
end

Instance Attribute Details

#correlation_idObject (readonly)

Returns the value of attribute correlation_id.



162
163
164
# File 'lib/tochtli/test/test_case.rb', line 162

def correlation_id
  @correlation_id
end

#message_idObject (readonly)

Returns the value of attribute message_id.



162
163
164
# File 'lib/tochtli/test/test_case.rb', line 162

def message_id
  @message_id
end

#reply_toObject (readonly)

Returns the value of attribute reply_to.



162
163
164
# File 'lib/tochtli/test/test_case.rb', line 162

def reply_to
  @reply_to
end

Instance Method Details

#[](key) ⇒ Object



170
171
172
# File 'lib/tochtli/test/test_case.rb', line 170

def [](key)
  send(key)
end