Sha256: e0ad57108be1d72f2670dd32837a6e01edd69aa0f82528d3c760b846da0aea17

Contents?: true

Size: 387 Bytes

Versions: 5

Compression:

Stored size: 387 Bytes

Contents

# frozen_string_literal: true

module Micro
  module Observers

    class Event
      require 'micro/observers/event/names'

      attr_reader :name, :subject, :context, :data

      def initialize(name, subject, context, data)
        @name, @subject = name, subject
        @context, @data = context, data
      end

      alias ctx context
      alias subj subject
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
u-observers-2.3.0 lib/micro/observers/event.rb
u-observers-2.2.1 lib/micro/observers/event.rb
u-observers-2.2.0 lib/micro/observers/event.rb
u-observers-2.1.0 lib/micro/observers/event.rb
u-observers-2.0.0 lib/micro/observers/event.rb