Class: Google::Apis::YoutubeV3::VideoRating
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::VideoRating
- 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
-
#rating ⇒ String
Rating of a video.
-
#video_id ⇒ String
The ID that YouTube uses to uniquely identify the video.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VideoRating
constructor
A new instance of VideoRating.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VideoRating
Returns a new instance of VideoRating.
8499 8500 8501 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 8499 def initialize(**args) update!(**args) end |
Instance Attribute Details
#rating ⇒ String
Rating of a video.
Corresponds to the JSON property rating
8492 8493 8494 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 8492 def @rating end |
#video_id ⇒ String
The ID that YouTube uses to uniquely identify the video.
Corresponds to the JSON property videoId
8497 8498 8499 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 8497 def video_id @video_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8504 8505 8506 8507 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 8504 def update!(**args) @rating = args[:rating] if args.key?(:rating) @video_id = args[:video_id] if args.key?(:video_id) end |