Sha256: ab2897e4ec00968872c66716a17a388b3c9aa321c61e1c1a7e4213db2fe2fbc2

Contents?: true

Size: 202 Bytes

Versions: 27

Compression:

Stored size: 202 Bytes

Contents

# A sample publisher that posts a message to the queue.
class SamplePublisher < Refinery::Publisher
  def execute
    if waiting_queue.size == 0
      publish({'text' => 'hey there!'})
    end
  end
end

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
aeden-refinery-0.9.10 publishers/sample.rb
aeden-refinery-0.9.11 publishers/sample.rb
aeden-refinery-0.9.12 publishers/sample.rb
aeden-refinery-0.9.13 publishers/sample.rb
aeden-refinery-0.9.14 publishers/sample.rb
aeden-refinery-0.9.15 publishers/sample.rb
aeden-refinery-0.9.2 publishers/sample.rb
aeden-refinery-0.9.4 publishers/sample.rb
aeden-refinery-0.9.5 publishers/sample.rb
aeden-refinery-0.9.6 publishers/sample.rb
aeden-refinery-0.9.7 publishers/sample.rb
aeden-refinery-0.9.8 publishers/sample.rb
aeden-refinery-0.9.9 publishers/sample.rb
refinery-0.9.3 publishers/sample.rb
refinery-0.9.4 publishers/sample.rb
refinery-0.9.5 publishers/sample.rb
refinery-0.9.6 publishers/sample.rb
refinery-0.9.7 publishers/sample.rb
refinery-0.9.8 publishers/sample.rb
refinery-0.9.9 publishers/sample.rb