Class: Google::Apis::YoutubeV3::VideoRating

Inherits:
Object
  • Object
show all
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

Basic details about rating of a video.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VideoRating

Returns a new instance of VideoRating.



8806
8807
8808
# File 'lib/google/apis/youtube_v3/classes.rb', line 8806

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#ratingString

Rating of a video. Corresponds to the JSON property rating

Returns:

  • (String)


8799
8800
8801
# File 'lib/google/apis/youtube_v3/classes.rb', line 8799

def rating
  @rating
end

#video_idString

The ID that YouTube uses to uniquely identify the video. Corresponds to the JSON property videoId

Returns:

  • (String)


8804
8805
8806
# File 'lib/google/apis/youtube_v3/classes.rb', line 8804

def video_id
  @video_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8811
8812
8813
8814
# File 'lib/google/apis/youtube_v3/classes.rb', line 8811

def update!(**args)
  @rating = args[:rating] if args.key?(:rating)
  @video_id = args[:video_id] if args.key?(:video_id)
end