Sha256: 9ca311909e217b3036decde12b2f0fb89fb7078fec3ac21366855bb6c24a875c

Contents?: true

Size: 182 Bytes

Versions: 27

Compression:

Stored size: 182 Bytes

Contents

# frozen_string_literal: true

class CatConsumer < Racecar::Consumer
  subscribes_to "messages", start_from_beginning: false

  def process(message)
    puts message.value
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
racecar-2.11.0 examples/cat_consumer.rb
racecar-2.11.0.beta4 examples/cat_consumer.rb
racecar-2.11.0.beta3 examples/cat_consumer.rb
racecar-2.11.0.beta2 examples/cat_consumer.rb
racecar-2.11.0.beta1 examples/cat_consumer.rb
racecar-2.10.0 examples/cat_consumer.rb
racecar-2.10.0.beta2 examples/cat_consumer.rb
racecar-2.10.0.beta1 examples/cat_consumer.rb
racecar-2.9.0 examples/cat_consumer.rb
racecar-2.9.0.beta1 examples/cat_consumer.rb
racecar-2.8.2 examples/cat_consumer.rb
racecar-2.8.2.beta examples/cat_consumer.rb
racecar-2.8.1 examples/cat_consumer.rb
racecar-2.8.0.rc.1 examples/cat_consumer.rb
racecar-2.8.0.beta.2 examples/cat_consumer.rb
racecar-2.8.0.beta.1 examples/cat_consumer.rb
racecar-2.7.0 examples/cat_consumer.rb
racecar-2.7.0.beta1 examples/cat_consumer.rb
racecar-2.6.0 examples/cat_consumer.rb
racecar-2.5.0 examples/cat_consumer.rb