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.



4993
4994
4995
# File 'lib/google/apis/youtube_v3/classes.rb', line 4993

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)


4986
4987
4988
# File 'lib/google/apis/youtube_v3/classes.rb', line 4986

def live_chat_id
  @live_chat_id
end

#moderator_detailsGoogle::Apis::YoutubeV3::ChannelProfileDetails

Details about the moderator. Corresponds to the JSON property moderatorDetails



4991
4992
4993
# File 'lib/google/apis/youtube_v3/classes.rb', line 4991

def moderator_details
  @moderator_details
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4998
4999
5000
5001
# File 'lib/google/apis/youtube_v3/classes.rb', line 4998

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