@message = message @builder = Builder.new PoseidonConsumer, ApolloPusher end def process resource = builder.resource message['uri'] return unless resource create(resource) if message['event'] == 'created' update(resource) if message['event'] == 'updated' end end end