Class: Urbivore::BasicProcessor

Inherits:
Object
  • Object
show all
Defined in:
lib/urbivore/processor.rb

Class Method Summary collapse

Class Method Details

.process(queued_object) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/urbivore/processor.rb', line 4

def process(queued_object)
  if queued_object.respond_to?(:messages)
    queued_object.messages.each { |str| puts str }
  else
    puts queued_object.to_s
  end
end