Class: Google::Apis::YoutubeV3::Thumbnail

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Thumbnail

Returns a new instance of Thumbnail.



7380
7381
7382
# File 'lib/google/apis/youtube_v3/classes.rb', line 7380

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

Instance Attribute Details

#heightFixnum

(Optional) Height of the thumbnail image. Corresponds to the JSON property height

Returns:

  • (Fixnum)


7368
7369
7370
# File 'lib/google/apis/youtube_v3/classes.rb', line 7368

def height
  @height
end

#urlString

The thumbnail image's URL. Corresponds to the JSON property url

Returns:

  • (String)


7373
7374
7375
# File 'lib/google/apis/youtube_v3/classes.rb', line 7373

def url
  @url
end

#widthFixnum

(Optional) Width of the thumbnail image. Corresponds to the JSON property width

Returns:

  • (Fixnum)


7378
7379
7380
# File 'lib/google/apis/youtube_v3/classes.rb', line 7378

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7385
7386
7387
7388
7389
# File 'lib/google/apis/youtube_v3/classes.rb', line 7385

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