7 8 9 10 11 12 13 14
# File 'lib/preact/sidekiq/preact_logging_worker.rb', line 7 def perform(person, event=nil) client = Preact::Client.new if event client.create_event(person, event) else client.update_person(person) end end