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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VideoRating

Returns a new instance of VideoRating



8226
8227
8228
# File 'generated/google/apis/youtube_v3/classes.rb', line 8226

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

Instance Attribute Details

#ratingString

Corresponds to the JSON property rating

Returns:

  • (String)


8219
8220
8221
# File 'generated/google/apis/youtube_v3/classes.rb', line 8219

def rating
  @rating
end

#video_idString

Corresponds to the JSON property videoId

Returns:

  • (String)


8224
8225
8226
# File 'generated/google/apis/youtube_v3/classes.rb', line 8224

def video_id
  @video_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8231
8232
8233
8234
# File 'generated/google/apis/youtube_v3/classes.rb', line 8231

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