Class: Google::Apis::YoutubeV3::Thumbnail
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::Thumbnail
- 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
Overview
A thumbnail is an image representing a YouTube resource.
Instance Attribute Summary collapse
-
#height ⇒ Fixnum
(Optional) Height of the thumbnail image.
-
#url ⇒ String
The thumbnail image's URL.
-
#width ⇒ Fixnum
(Optional) Width of the thumbnail image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Thumbnail
constructor
A new instance of Thumbnail.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Thumbnail
Returns a new instance of Thumbnail
7164 7165 7166 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7164 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
(Optional) Height of the thumbnail image.
Corresponds to the JSON property height
7152 7153 7154 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7152 def height @height end |
#url ⇒ String
The thumbnail image's URL.
Corresponds to the JSON property url
7157 7158 7159 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7157 def url @url end |
#width ⇒ Fixnum
(Optional) Width of the thumbnail image.
Corresponds to the JSON property width
7162 7163 7164 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7162 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7169 7170 7171 7172 7173 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 7169 def update!(**args) @height = args[:height] if args.key?(:height) @url = args[:url] if args.key?(:url) @width = args[:width] if args.key?(:width) end |