Class: Google::Apis::YoutubeV3::Thumbnail
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::Thumbnail
- 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
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.
Constructor Details
#initialize(**args) ⇒ Thumbnail
Returns a new instance of Thumbnail.
7186 7187 7188 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7186 def initialize(**args) update!(**args) end |
Instance Attribute Details
#height ⇒ Fixnum
(Optional) Height of the thumbnail image.
Corresponds to the JSON property height
7174 7175 7176 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7174 def height @height end |
#url ⇒ String
The thumbnail image's URL.
Corresponds to the JSON property url
7179 7180 7181 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7179 def url @url end |
#width ⇒ Fixnum
(Optional) Width of the thumbnail image.
Corresponds to the JSON property width
7184 7185 7186 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7184 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7191 7192 7193 7194 7195 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 7191 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 |