class Google::Apis::YoutubeV3::CommentSnippet
Basic details about a comment, such as its author and text.
Attributes
Whether the current viewer can rate this comment. Corresponds to the JSON property `canRate` @return [Boolean]
Whether the current viewer can rate this comment. Corresponds to the JSON property `canRate` @return [Boolean]
The id of the corresponding YouTube channel. In case of a channel comment this is the channel the comment refers to. In case of a video comment it's the video's channel. Corresponds to the JSON property `channelId` @return [String]
The total number of likes this comment has received. Corresponds to the JSON property `likeCount` @return [Fixnum]
The comment's moderation status. Will not be set if the comments were requested through the id filter. Corresponds to the JSON property `moderationStatus` @return [String]
The unique id of the parent comment, only set for replies. Corresponds to the JSON property `parentId` @return [String]
The date and time when the comment was originally published. Corresponds to the JSON property `publishedAt` @return [DateTime]
The comment's text. The format is either plain text or HTML dependent on what has been requested. Even the plain text representation may differ from the text originally posted in that it may replace video links with video titles etc. Corresponds to the JSON property `textDisplay` @return [String]
The comment's original raw text as initially posted or last updated. The original text will only be returned if it is accessible to the viewer, which is only guaranteed if the viewer is the comment's author. Corresponds to the JSON property `textOriginal` @return [String]
The date and time when the comment was last updated. Corresponds to the JSON property `updatedAt` @return [DateTime]
The ID of the video the comment refers to, if any. Corresponds to the JSON property `videoId` @return [String]
The rating the viewer has given to this comment. For the time being this will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This may change in the future. Corresponds to the JSON property `viewerRating` @return [String]
Public Class Methods
# File lib/google/apis/youtube_v3/classes.rb, line 2153 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/youtube_v3/classes.rb, line 2158 def update!(**args) @author_channel_id = args[:author_channel_id] if args.key?(:author_channel_id) @author_channel_url = args[:author_channel_url] if args.key?(:author_channel_url) @author_display_name = args[:author_display_name] if args.key?(:author_display_name) @author_profile_image_url = args[:author_profile_image_url] if args.key?(:author_profile_image_url) @can_rate = args[:can_rate] if args.key?(:can_rate) @channel_id = args[:channel_id] if args.key?(:channel_id) @like_count = args[:like_count] if args.key?(:like_count) @moderation_status = args[:moderation_status] if args.key?(:moderation_status) @parent_id = args[:parent_id] if args.key?(:parent_id) @published_at = args[:published_at] if args.key?(:published_at) @text_display = args[:text_display] if args.key?(:text_display) @text_original = args[:text_original] if args.key?(:text_original) @updated_at = args[:updated_at] if args.key?(:updated_at) @video_id = args[:video_id] if args.key?(:video_id) @viewer_rating = args[:viewer_rating] if args.key?(:viewer_rating) end