Class: Phronomy::Event

Inherits:
Data
  • Object
show all
Defined in:
lib/phronomy/event.rb

Overview

Immutable event used for EventLoop communication.

User-defined Workflow events carry application-owned payloads unchanged. Correlation identifiers, stale-event decisions, and domain interpretation remain application concerns.

Instance Attribute Summary collapse

Instance Attribute Details

#payloadObject (readonly)

Returns the value of attribute payload

Returns:

  • (Object)

    the current value of payload



13
14
15
# File 'lib/phronomy/event.rb', line 13

def payload
  @payload
end

#target_idString (readonly)

Returns the value of attribute target_id

Returns:

  • (String)

    the current value of target_id



13
14
15
# File 'lib/phronomy/event.rb', line 13

def target_id
  @target_id
end

#typeSymbol (readonly)

Returns the value of attribute type

Returns:

  • (Symbol)

    the current value of type



13
14
15
# File 'lib/phronomy/event.rb', line 13

def type
  @type
end