Sha256: 9c2ddee87120e0db2928b4d3a2f38f607ec624e23bcfd7e5d38b69fe64643a69

Contents?: true

Size: 216 Bytes

Versions: 3

Compression:

Stored size: 216 Bytes

Contents

module Pheme
  class MessageHandler
    attr_reader :message, :timestamp

    def initialize(message:, metadata: {})
      @message = message
    end

    def handle
      raise NotImplementedError
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pheme-1.2.1 lib/pheme/message_handler.rb
pheme-1.2.0 lib/pheme/message_handler.rb
pheme-1.1.1 lib/pheme/message_handler.rb