Class: Twitch::Bot::Message::Mode

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

Overview

This class stores the details of a Mode event.

Instance Attribute Summary collapse

Attributes inherited from Event

#type

Instance Method Summary collapse

Constructor Details

#initialize(user:, mode:) ⇒ Mode

Returns a new instance of Mode.



37
38
39
40
41
# File 'lib/twitch/bot/message.rb', line 37

def initialize(user:, mode:)
  @user = user
  @mode = mode
  super(type: :mode)
end

Instance Attribute Details

#modeObject (readonly)

Returns the value of attribute mode.



35
36
37
# File 'lib/twitch/bot/message.rb', line 35

def mode
  @mode
end

#userObject (readonly)

Returns the value of attribute user.



35
36
37
# File 'lib/twitch/bot/message.rb', line 35

def user
  @user
end