Sha256: a70d04766d4c5430a6489ad0e8f04ef6f6d96fe29e04f02c2fe6927fafe8f63d

Contents?: true

Size: 292 Bytes

Versions: 4

Compression:

Stored size: 292 Bytes

Contents

require 'delegate'
module SandthornDriverSequel
  class EventWrapper < SimpleDelegator

    [:aggregate_version, :event_name, :event_data, :event_args, :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-3.2.1 lib/sandthorn_driver_sequel/wrappers/event_wrapper.rb
sandthorn_driver_sequel-3.2.0 lib/sandthorn_driver_sequel/wrappers/event_wrapper.rb
sandthorn_driver_sequel-3.1.0 lib/sandthorn_driver_sequel/wrappers/event_wrapper.rb
sandthorn_driver_sequel-3.0.0 lib/sandthorn_driver_sequel/wrappers/event_wrapper.rb