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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ThumbnailDetails

Returns a new instance of ThumbnailDetails.



7241
7242
7243
# File 'generated/google/apis/youtube_v3/classes.rb', line 7241

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



7219
7220
7221
# File 'generated/google/apis/youtube_v3/classes.rb', line 7219

def default
  @default
end

#highGoogle::Apis::YoutubeV3::Thumbnail

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



7224
7225
7226
# File 'generated/google/apis/youtube_v3/classes.rb', line 7224

def high
  @high
end

#maxresGoogle::Apis::YoutubeV3::Thumbnail

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



7229
7230
7231
# File 'generated/google/apis/youtube_v3/classes.rb', line 7229

def maxres
  @maxres
end

#mediumGoogle::Apis::YoutubeV3::Thumbnail

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



7234
7235
7236
# File 'generated/google/apis/youtube_v3/classes.rb', line 7234

def medium
  @medium
end

#standardGoogle::Apis::YoutubeV3::Thumbnail

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



7239
7240
7241
# File 'generated/google/apis/youtube_v3/classes.rb', line 7239

def standard
  @standard
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7246
7247
7248
7249
7250
7251
7252
# File 'generated/google/apis/youtube_v3/classes.rb', line 7246

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