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.
-
#fhd ⇒ 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.
-
#qhd ⇒ 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.
-
#uhd ⇒ 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.
7923 7924 7925 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7923 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
7886 7887 7888 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7886 def default @default end |
#fhd ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
Corresponds to the JSON property fhd
7891 7892 7893 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7891 def fhd @fhd end |
#high ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
Corresponds to the JSON property high
7896 7897 7898 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7896 def high @high end |
#maxres ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
Corresponds to the JSON property maxres
7901 7902 7903 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7901 def maxres @maxres end |
#medium ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
Corresponds to the JSON property medium
7906 7907 7908 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7906 def medium @medium end |
#qhd ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
Corresponds to the JSON property qhd
7911 7912 7913 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7911 def qhd @qhd end |
#standard ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
Corresponds to the JSON property standard
7916 7917 7918 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7916 def standard @standard end |
#uhd ⇒ Google::Apis::YoutubeV3::Thumbnail
A thumbnail is an image representing a YouTube resource.
Corresponds to the JSON property uhd
7921 7922 7923 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7921 def uhd @uhd end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7928 def update!(**args) @default = args[:default] if args.key?(:default) @fhd = args[:fhd] if args.key?(:fhd) @high = args[:high] if args.key?(:high) @maxres = args[:maxres] if args.key?(:maxres) @medium = args[:medium] if args.key?(:medium) @qhd = args[:qhd] if args.key?(:qhd) @standard = args[:standard] if args.key?(:standard) @uhd = args[:uhd] if args.key?(:uhd) end |