Class: Twitch::Bot::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/twitch/bot/event.rb

Overview

Represent a generic Twitch chat event/message

Direct Known Subclasses

Client::StopEvent, Message::Base

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type: :unknown) ⇒ Event

Returns a new instance of Event.



9
10
11
# File 'lib/twitch/bot/event.rb', line 9

def initialize(type: :unknown)
  @type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



7
8
9
# File 'lib/twitch/bot/event.rb', line 7

def type
  @type
end