Class: Google::Apis::YoutubeV3::VideoStatistics
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::VideoStatistics
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/youtube_v3/classes.rb,
generated/google/apis/youtube_v3/representations.rb,
generated/google/apis/youtube_v3/representations.rb
Overview
Statistics about the video, such as the number of times the video was viewed or liked.
Instance Attribute Summary collapse
-
#comment_count ⇒ Fixnum
The number of comments for the video.
-
#dislike_count ⇒ Fixnum
The number of users who have indicated that they disliked the video by giving it a negative rating.
-
#favorite_count ⇒ Fixnum
The number of users who currently have the video marked as a favorite video.
-
#like_count ⇒ Fixnum
The number of users who have indicated that they liked the video by giving it a positive rating.
-
#view_count ⇒ Fixnum
The number of times the video has been viewed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VideoStatistics
constructor
A new instance of VideoStatistics.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VideoStatistics
Returns a new instance of VideoStatistics
8310 8311 8312 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 8310 def initialize(**args) update!(**args) end |
Instance Attribute Details
#comment_count ⇒ Fixnum
The number of comments for the video.
Corresponds to the JSON property commentCount
8286 8287 8288 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 8286 def comment_count @comment_count end |
#dislike_count ⇒ Fixnum
The number of users who have indicated that they disliked the video by giving
it a negative rating.
Corresponds to the JSON property dislikeCount
8292 8293 8294 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 8292 def dislike_count @dislike_count end |
#favorite_count ⇒ Fixnum
The number of users who currently have the video marked as a favorite video.
Corresponds to the JSON property favoriteCount
8297 8298 8299 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 8297 def favorite_count @favorite_count end |
#like_count ⇒ Fixnum
The number of users who have indicated that they liked the video by giving it
a positive rating.
Corresponds to the JSON property likeCount
8303 8304 8305 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 8303 def like_count @like_count end |
#view_count ⇒ Fixnum
The number of times the video has been viewed.
Corresponds to the JSON property viewCount
8308 8309 8310 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 8308 def view_count @view_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8315 8316 8317 8318 8319 8320 8321 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 8315 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 |