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.



7216
7217
7218
# File 'lib/google/apis/youtube_v3/classes.rb', line 7216

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



7194
7195
7196
# File 'lib/google/apis/youtube_v3/classes.rb', line 7194

def default
  @default
end

#highGoogle::Apis::YoutubeV3::Thumbnail

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



7199
7200
7201
# File 'lib/google/apis/youtube_v3/classes.rb', line 7199

def high
  @high
end

#maxresGoogle::Apis::YoutubeV3::Thumbnail

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



7204
7205
7206
# File 'lib/google/apis/youtube_v3/classes.rb', line 7204

def maxres
  @maxres
end

#mediumGoogle::Apis::YoutubeV3::Thumbnail

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



7209
7210
7211
# File 'lib/google/apis/youtube_v3/classes.rb', line 7209

def medium
  @medium
end

#standardGoogle::Apis::YoutubeV3::Thumbnail

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



7214
7215
7216
# File 'lib/google/apis/youtube_v3/classes.rb', line 7214

def standard
  @standard
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7221
7222
7223
7224
7225
7226
7227
# File 'lib/google/apis/youtube_v3/classes.rb', line 7221

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