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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Thumbnail

Returns a new instance of Thumbnail



6749
6750
6751
# File 'generated/google/apis/youtube_v3/classes.rb', line 6749

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

Instance Attribute Details

#heightFixnum

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

Returns:

  • (Fixnum)


6737
6738
6739
# File 'generated/google/apis/youtube_v3/classes.rb', line 6737

def height
  @height
end

#urlString

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

Returns:

  • (String)


6742
6743
6744
# File 'generated/google/apis/youtube_v3/classes.rb', line 6742

def url
  @url
end

#widthFixnum

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

Returns:

  • (Fixnum)


6747
6748
6749
# File 'generated/google/apis/youtube_v3/classes.rb', line 6747

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6754
6755
6756
6757
6758
# File 'generated/google/apis/youtube_v3/classes.rb', line 6754

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