Class: Twitch::AutomodMessageStatus
- Inherits:
-
Object
- Object
- Twitch::AutomodMessageStatus
- Defined in:
- lib/twitch/automod_message_status.rb
Overview
A determination if AutoMod would allow a message in a particular channel’s chat.
Instance Attribute Summary collapse
-
#is_permitted ⇒ Object
readonly
Whether the message would meet AutoMod requirements for the channel.
-
#msg_id ⇒ Object
readonly
ID of the message.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ AutomodMessageStatus
constructor
A new instance of AutomodMessageStatus.
Constructor Details
#initialize(attributes = {}) ⇒ AutomodMessageStatus
Returns a new instance of AutomodMessageStatus.
11 12 13 14 15 |
# File 'lib/twitch/automod_message_status.rb', line 11 def initialize(attributes = {}) attributes.each do |key, value| instance_variable_set "@#{key}", value end end |
Instance Attribute Details
#is_permitted ⇒ Object (readonly)
Whether the message would meet AutoMod requirements for the channel.
9 10 11 |
# File 'lib/twitch/automod_message_status.rb', line 9 def is_permitted @is_permitted end |
#msg_id ⇒ Object (readonly)
ID of the message. Matches the field of the same name passed in the request.
7 8 9 |
# File 'lib/twitch/automod_message_status.rb', line 7 def msg_id @msg_id end |