Sha256: 3d5310b4828b1fb01dfc26c8a5464b4092d3fa474ae1306ed8175b1df362c268

Contents?: true

Size: 398 Bytes

Versions: 5

Compression:

Stored size: 398 Bytes

Contents

# -*- encoding : utf-8 -*-

require 'representable/json'

module Untied
  module Publisher
    module EventRepresenter
      # Publisher::Event is extended with this module at runtime. It defines
      # how the event will be serialized.

      include Representable::JSON
      self.representation_wrap = true

      property :name
      property :payload
      property :origin
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
untied-publisher-0.0.7.pre3 lib/untied-publisher/event_representer.rb
untied-publisher-0.0.7.pre2 lib/untied-publisher/event_representer.rb
untied-publisher-0.0.7.pre1 lib/untied-publisher/event_representer.rb
untied-publisher-0.0.7.pre lib/untied-publisher/event_representer.rb
untied-publisher-0.0.6 lib/untied-publisher/event_representer.rb