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

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

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.



6947
6948
6949
# File 'generated/google/apis/youtube_v3/classes.rb', line 6947

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



6925
6926
6927
# File 'generated/google/apis/youtube_v3/classes.rb', line 6925

def default
  @default
end

#highGoogle::Apis::YoutubeV3::Thumbnail

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



6930
6931
6932
# File 'generated/google/apis/youtube_v3/classes.rb', line 6930

def high
  @high
end

#maxresGoogle::Apis::YoutubeV3::Thumbnail

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



6935
6936
6937
# File 'generated/google/apis/youtube_v3/classes.rb', line 6935

def maxres
  @maxres
end

#mediumGoogle::Apis::YoutubeV3::Thumbnail

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



6940
6941
6942
# File 'generated/google/apis/youtube_v3/classes.rb', line 6940

def medium
  @medium
end

#standardGoogle::Apis::YoutubeV3::Thumbnail

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



6945
6946
6947
# File 'generated/google/apis/youtube_v3/classes.rb', line 6945

def standard
  @standard
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6952
6953
6954
6955
6956
6957
6958
# File 'generated/google/apis/youtube_v3/classes.rb', line 6952

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