Class: Twitch::AutomodMessageStatus

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_permittedObject (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_idObject (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