Class: Twitch::Bot::Message::SubsOnlyMode
- Defined in:
- lib/twitch/bot/message.rb
Overview
This class stores the details of a SubsOnlyMode event.
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Attributes inherited from Event
Instance Method Summary collapse
-
#initialize(status:, channel:) ⇒ SubsOnlyMode
constructor
A new instance of SubsOnlyMode.
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
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
105 106 107 |
# File 'lib/twitch/bot/message.rb', line 105 def channel @channel end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
105 106 107 |
# File 'lib/twitch/bot/message.rb', line 105 def status @status end |