Parent

Files

Class/Module Index [+]

Quicksearch

ActiveMessaging::BaseMessage

Attributes

body[RW]
destination[RW]
headers[RW]
id[RW]

Public Class Methods

new(body=nil, id=nil, headers={}, destination=nil) click to toggle source
# File lib/activemessaging/base_message.rb, line 6
def initialize(body=nil, id=nil, headers={}, destination=nil)
  @body, @id, @headers, @destination = body, id, headers, destination
end

Public Instance Methods

matches_subscription?(subscription) click to toggle source
# File lib/activemessaging/base_message.rb, line 10
def matches_subscription?(subscription)
  self.destination.to_s == subscription.destination.value.to_s
end
to_s() click to toggle source
# File lib/activemessaging/base_message.rb, line 14
def to_s      
  "<#{self.class.name} id='#{id}' headers='#{headers.inspect}' body='#{body}' >"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.