Permalink
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (18 sloc) 512 Bytes
#
# Simple example: reads from a subscription queue, writes the events to STDOUT
#
# Usage (from this directory):
# $ QUEUE=EXAMPLES rake resque:work
require 'rubygems'
require 'resque/tasks'
class HandleFlamingoEvent
#
# type: One of "tweet" or "delete"
# event: a hash of the json data from twitter
#
#def self.perform(type, event_info, event)
def self.perform(type, event)
# Do stuff with the data, probably something more interesting than this:
puts [type, event].inspect
end
end