Class: EventAggregator::MessageJob

Inherits:
Object
  • Object
show all
Defined in:
lib/event_aggregator/message_job.rb

Overview

Public: MessageJob is a class used by the EventAggregator::Aggregator for processing message distribution.

Instance Method Summary collapse

Instance Method Details

#perform(data, callback) ⇒ Object

Public: Duplicate some text an arbitrary number of times.

data - The data that will be sent to the callback, originating from a message. callback - The callback that will be processed with the data as a parameter



14
15
16
# File 'lib/event_aggregator/message_job.rb', line 14

def perform(data, callback)
	callback.call(data)
end