Class: Google::Apis::YoutubeV3::LiveChatModeratorSnippet

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LiveChatModeratorSnippet

Returns a new instance of LiveChatModeratorSnippet.



5158
5159
5160
# File 'lib/google/apis/youtube_v3/classes.rb', line 5158

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#live_chat_idString

The ID of the live chat this moderator can act on. Corresponds to the JSON property liveChatId

Returns:

  • (String)


5151
5152
5153
# File 'lib/google/apis/youtube_v3/classes.rb', line 5151

def live_chat_id
  @live_chat_id
end

#moderator_detailsGoogle::Apis::YoutubeV3::ChannelProfileDetails

Details about the moderator. Corresponds to the JSON property moderatorDetails



5156
5157
5158
# File 'lib/google/apis/youtube_v3/classes.rb', line 5156

def moderator_details
  @moderator_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5163
5164
5165
5166
# File 'lib/google/apis/youtube_v3/classes.rb', line 5163

def update!(**args)
  @live_chat_id = args[:live_chat_id] if args.key?(:live_chat_id)
  @moderator_details = args[:moderator_details] if args.key?(:moderator_details)
end