Module: Moqueue::MockExchange::BaseKey

Included in:
DirectBindingKey, TopicBindingKey
Defined in:
lib/moqueue/mock_exchange.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



100
101
102
# File 'lib/moqueue/mock_exchange.rb', line 100

def key
  @key
end

Instance Method Details

#==(other) ⇒ Object



102
103
104
# File 'lib/moqueue/mock_exchange.rb', line 102

def ==(other)
  other.respond_to?(:key) && other.key == @key
end