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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LiveChatModeratorSnippet

Returns a new instance of LiveChatModeratorSnippet.



4592
4593
4594
# File 'generated/google/apis/youtube_v3/classes.rb', line 4592

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)


4585
4586
4587
# File 'generated/google/apis/youtube_v3/classes.rb', line 4585

def live_chat_id
  @live_chat_id
end

#moderator_detailsGoogle::Apis::YoutubeV3::ChannelProfileDetails

Details about the moderator. Corresponds to the JSON property moderatorDetails



4590
4591
4592
# File 'generated/google/apis/youtube_v3/classes.rb', line 4590

def moderator_details
  @moderator_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4597
4598
4599
4600
# File 'generated/google/apis/youtube_v3/classes.rb', line 4597

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