Sha256: b01b3012a804c7495a011d5b65dee5de357d01e627c3ac695f43510ee013ce72

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

module EventAggregator
	class Message
		attr_accessor :message_type, :data
		@message_type = nil
		@data = nil
		def initialize(message_type, data)
			raise "Illegal Message Type" if !message_type
			
			@message_type = message_type
			@data = data
		end

		def publish
			Aggregator.message_publish( self )
		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
event_aggregator-0.0.2 lib/event_aggregator/message.rb