Class: Google::Apis::YoutubeV3::ThumbnailDetails
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::ThumbnailDetails
- 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
Internal representation of thumbnails for a YouTube resource.
Instance Attribute Summary collapse
-
#default ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
-
#high ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
-
#maxres ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
-
#medium ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
-
#standard ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ThumbnailDetails
constructor
A new instance of ThumbnailDetails.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ThumbnailDetails
Returns a new instance of ThumbnailDetails.
7281 7282 7283 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7281 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
Corresponds to the JSON property default
7259 7260 7261 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7259 def default @default end |
#high ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
Corresponds to the JSON property high
7264 7265 7266 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7264 def high @high end |
#maxres ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
Corresponds to the JSON property maxres
7269 7270 7271 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7269 def maxres @maxres end |
#medium ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
Corresponds to the JSON property medium
7274 7275 7276 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7274 def medium @medium end |
#standard ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
Corresponds to the JSON property standard
7279 7280 7281 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7279 def standard @standard end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7286 7287 7288 7289 7290 7291 7292 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7286 def update!(**args) @default = args[:default] if args.key?(:default) @high = args[:high] if args.key?(:high) @maxres = args[:maxres] if args.key?(:maxres) @medium = args[:medium] if args.key?(:medium) @standard = args[:standard] if args.key?(:standard) end |