Class: Torkify::Event::BasicEvent

Inherits:
Struct
  • Object
show all
Includes:
Message
Defined in:
lib/torkify/event/basic_event.rb

Overview

Event used for all events that have no associated data.

Types:

- absorb
- shutdown
- startup
- anything else...

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Message

#message

Instance Attribute Details

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



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

def type
  @type
end

Instance Method Details

#to_sObject



16
17
18
# File 'lib/torkify/event/basic_event.rb', line 16

def to_s
  type
end