Sha256: 9e459e8d5b9c2addf76f58d7a08deaaf0d85ea4f57307812b1a6f61545290e78

Contents?: true

Size: 212 Bytes

Versions: 86

Compression:

Stored size: 212 Bytes

Contents

class ExampleMessageHandler < Pheme::MessageHandler
  def handle
    case message.status
    when "complete"
      Pheme.logger.info("Done")
    when "rejected"
      Pheme.logger.error("Oops")
    end
  end
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
pheme-6.0.2 spec/support/example_message_handler.rb
pheme-6.0.1 spec/support/example_message_handler.rb
pheme-6.0.0 spec/support/example_message_handler.rb
pheme-5.3.4 spec/support/example_message_handler.rb
pheme-5.3.3 spec/support/example_message_handler.rb
pheme-5.3.0 spec/support/example_message_handler.rb
pheme-5.2.16 spec/support/example_message_handler.rb
pheme-5.2.15 spec/support/example_message_handler.rb
pheme-5.2.14 spec/support/example_message_handler.rb
pheme-5.2.13 spec/support/example_message_handler.rb
pheme-5.2.12 spec/support/example_message_handler.rb
pheme-5.2.11 spec/support/example_message_handler.rb
pheme-5.2.10 spec/support/example_message_handler.rb
pheme-5.2.9 spec/support/example_message_handler.rb
pheme-5.2.8 spec/support/example_message_handler.rb
pheme-5.2.7 spec/support/example_message_handler.rb
pheme-5.2.6 spec/support/example_message_handler.rb
pheme-5.2.5 spec/support/example_message_handler.rb
pheme-5.2.4 spec/support/example_message_handler.rb
pheme-5.2.3 spec/support/example_message_handler.rb