Class: Twitch::Bot::Message::SubsOnlyMode

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

Overview

This class stores the details of a SubsOnlyMode event.

Instance Attribute Summary collapse

Attributes inherited from Event

#type

Instance Method Summary collapse

Constructor Details

#initialize(status:, channel:) ⇒ SubsOnlyMode

Returns a new instance of SubsOnlyMode.



107
108
109
110
111
# File 'lib/twitch/bot/message.rb', line 107

def initialize(status:, channel:)
  @status = status
  @channel = channel
  super(type: :subs_only_mode)
end

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



105
106
107
# File 'lib/twitch/bot/message.rb', line 105

def channel
  @channel
end

#statusObject (readonly)

Returns the value of attribute status.



105
106
107
# File 'lib/twitch/bot/message.rb', line 105

def status
  @status
end