Class: Google::Apis::YoutubeV3::LiveChatMessage
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::LiveChatMessage
- 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
Overview
A liveChatMessage resource represents a chat message in a YouTube Live Chat.
Instance Attribute Summary collapse
-
#author_details ⇒ Google::Apis::YoutubeV3::LiveChatMessageAuthorDetails
The authorDetails object contains basic details about the user that posted this message.
-
#etag ⇒ String
Etag of this resource.
-
#id ⇒ String
The ID that YouTube assigns to uniquely identify the message.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#snippet ⇒ Google::Apis::YoutubeV3::LiveChatMessageSnippet
Next ID: 34 Corresponds to the JSON property
snippet
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LiveChatMessage
constructor
A new instance of LiveChatMessage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LiveChatMessage
Returns a new instance of LiveChatMessage.
4341 4342 4343 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 4341 def initialize(**args) update!(**args) end |
Instance Attribute Details
#author_details ⇒ Google::Apis::YoutubeV3::LiveChatMessageAuthorDetails
The authorDetails object contains basic details about the user that posted
this message.
Corresponds to the JSON property authorDetails
4318 4319 4320 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 4318 def @author_details end |
#etag ⇒ String
Etag of this resource.
Corresponds to the JSON property etag
4323 4324 4325 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 4323 def etag @etag end |
#id ⇒ String
The ID that YouTube assigns to uniquely identify the message.
Corresponds to the JSON property id
4328 4329 4330 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 4328 def id @id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "youtube#
liveChatMessage".
Corresponds to the JSON property kind
4334 4335 4336 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 4334 def kind @kind end |
#snippet ⇒ Google::Apis::YoutubeV3::LiveChatMessageSnippet
Next ID: 34
Corresponds to the JSON property snippet
4339 4340 4341 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 4339 def snippet @snippet end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4346 4347 4348 4349 4350 4351 4352 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 4346 def update!(**args) @author_details = args[:author_details] if args.key?(:author_details) @etag = args[:etag] if args.key?(:etag) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @snippet = args[:snippet] if args.key?(:snippet) end |