class Google::Apis::YoutubeV3::VideoStatistics

Statistics about the video, such as the number of times the video was viewed or liked.

Attributes

comment_count[RW]

The number of comments for the video. Corresponds to the JSON property `commentCount` @return [String]

dislike_count[RW]

The number of users who have indicated that they disliked the video by giving it a negative rating. Corresponds to the JSON property `dislikeCount` @return [String]

favorite_count[RW]

The number of users who currently have the video marked as a favorite video. Corresponds to the JSON property `favoriteCount` @return [String]

like_count[RW]

The number of users who have indicated that they liked the video by giving it a positive rating. Corresponds to the JSON property `likeCount` @return [String]

view_count[RW]

The number of times the video has been viewed. Corresponds to the JSON property `viewCount` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/youtube_v3/classes.rb, line 7945
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/youtube_v3/classes.rb, line 7950
def update!(**args)
  @comment_count = args[:comment_count] if args.key?(:comment_count)
  @dislike_count = args[:dislike_count] if args.key?(:dislike_count)
  @favorite_count = args[:favorite_count] if args.key?(:favorite_count)
  @like_count = args[:like_count] if args.key?(:like_count)
  @view_count = args[:view_count] if args.key?(:view_count)
end