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.



7898
7899
7900
# File 'lib/google/apis/youtube_v3/classes.rb', line 7898

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



7876
7877
7878
# File 'lib/google/apis/youtube_v3/classes.rb', line 7876

def default
  @default
end

#highGoogle::Apis::YoutubeV3::Thumbnail

A thumbnail is an image representing a YouTube resource. Corresponds to the JSON property high



7881
7882
7883
# File 'lib/google/apis/youtube_v3/classes.rb', line 7881

def high
  @high
end

#maxresGoogle::Apis::YoutubeV3::Thumbnail

A thumbnail is an image representing a YouTube resource. Corresponds to the JSON property maxres



7886
7887
7888
# File 'lib/google/apis/youtube_v3/classes.rb', line 7886

def maxres
  @maxres
end

#mediumGoogle::Apis::YoutubeV3::Thumbnail

A thumbnail is an image representing a YouTube resource. Corresponds to the JSON property medium



7891
7892
7893
# File 'lib/google/apis/youtube_v3/classes.rb', line 7891

def medium
  @medium
end

#standardGoogle::Apis::YoutubeV3::Thumbnail

A thumbnail is an image representing a YouTube resource. Corresponds to the JSON property standard



7896
7897
7898
# File 'lib/google/apis/youtube_v3/classes.rb', line 7896

def standard
  @standard
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7903
7904
7905
7906
7907
7908
7909
# File 'lib/google/apis/youtube_v3/classes.rb', line 7903

def update!(**args)
  @default = args[:default] if args.key?(:default)
  @high = args[:high] if args.key?(:high)
  @maxres = args[:maxres] if args.key?(:maxres)
  @medium = args[:medium] if args.key?(:medium)
  @standard = args[:standard] if args.key?(:standard)
end