Class: Twitch::Bot::Message::FollowersOnlyMode

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

Overview

This class stores the details of a FollowersOnlyMode event.

Instance Attribute Summary collapse

Attributes inherited from Event

#type

Instance Method Summary collapse

Constructor Details

#initialize(status:) ⇒ FollowersOnlyMode

Returns a new instance of FollowersOnlyMode.



97
98
99
100
# File 'lib/twitch/bot/message.rb', line 97

def initialize(status:)
  @status = status
  super(type: :followers_only_mode)
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



95
96
97
# File 'lib/twitch/bot/message.rb', line 95

def status
  @status
end