Sha256: 0d488fb4bc47ca52a5a5d59f745b93ac074f69b339f49eae7bf43cd9334da83e

Contents?: true

Size: 279 Bytes

Versions: 4

Compression:

Stored size: 279 Bytes

Contents

require 'delegate'
module SandthornDriverSequel
  class EventWrapper < SimpleDelegator

    [:aggregate_version, :event_name, :event_data, :timestamp, :aggregate_table_id].each do |attribute|
      define_method(attribute) do
        fetch(attribute)
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sandthorn_driver_sequel-2.1.1 lib/sandthorn_driver_sequel/wrappers/event_wrapper.rb
sandthorn_driver_sequel-2.1.0 lib/sandthorn_driver_sequel/wrappers/event_wrapper.rb
sandthorn_driver_sequel-2.0.1 lib/sandthorn_driver_sequel/wrappers/event_wrapper.rb
sandthorn_driver_sequel-2.0.0 lib/sandthorn_driver_sequel/wrappers/event_wrapper.rb