Class: Google::Apis::YoutubeV3::ThumbnailDetails

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

Internal representation of thumbnails for a YouTube resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#defaultGoogle::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

#fhdGoogle::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

#highGoogle::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

#maxresGoogle::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

#mediumGoogle::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

#qhdGoogle::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

#standardGoogle::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

#uhdGoogle::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