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: 33 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.
4192 4193 4194 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 4192 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
4169 4170 4171 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 4169 def @author_details end |
#etag ⇒ String
Etag of this resource.
Corresponds to the JSON property etag
4174 4175 4176 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 4174 def etag @etag end |
#id ⇒ String
The ID that YouTube assigns to uniquely identify the message.
Corresponds to the JSON property id
4179 4180 4181 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 4179 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
4185 4186 4187 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 4185 def kind @kind end |
#snippet ⇒ Google::Apis::YoutubeV3::LiveChatMessageSnippet
Next ID: 33
Corresponds to the JSON property snippet
4190 4191 4192 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 4190 def snippet @snippet end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4197 4198 4199 4200 4201 4202 4203 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 4197 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 |