Class: Phronomy::Event

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

Overview

Immutable event struct used for inter-FSM communication via EventLoop.

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_idObject (readonly)

Returns the value of attribute target_id

Returns:

  • (Object)

    the current value of target_id



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

def target_id
  @target_id
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



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

def type
  @type
end