Sha256: 45bf0b4bced83d1d4e2402c8d9c2e7c73067163b7214c1841dd747ea370e43a7

Contents?: true

Size: 301 Bytes

Versions: 2

Compression:

Stored size: 301 Bytes

Contents

require_relative 'message'

module Torkify::Event

  # Event used for all events that have no associated data.
  #
  # Types:
  #
  #  - absorb
  #  - shutdown
  #  - startup
  #  - anything else...
  class BasicEvent < Struct.new(:type)
    include Message

    def to_s
      type
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
torkify-0.0.3 lib/torkify/event/basic_event.rb
torkify-0.0.2 lib/torkify/event/basic_event.rb