Class: Twitch::Bot::Event
- Inherits:
-
Object
- Object
- Twitch::Bot::Event
- Defined in:
- lib/twitch/bot/event.rb
Overview
Represent a generic Twitch chat event/message
Direct Known Subclasses
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type: :unknown) ⇒ Event
constructor
A new instance of Event.
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
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/twitch/bot/event.rb', line 7 def type @type end |