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.



7421
7422
7423
# File 'lib/google/apis/youtube_v3/classes.rb', line 7421

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



7399
7400
7401
# File 'lib/google/apis/youtube_v3/classes.rb', line 7399

def default
  @default
end

#highGoogle::Apis::YoutubeV3::Thumbnail

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



7404
7405
7406
# File 'lib/google/apis/youtube_v3/classes.rb', line 7404

def high
  @high
end

#maxresGoogle::Apis::YoutubeV3::Thumbnail

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



7409
7410
7411
# File 'lib/google/apis/youtube_v3/classes.rb', line 7409

def maxres
  @maxres
end

#mediumGoogle::Apis::YoutubeV3::Thumbnail

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



7414
7415
7416
# File 'lib/google/apis/youtube_v3/classes.rb', line 7414

def medium
  @medium
end

#standardGoogle::Apis::YoutubeV3::Thumbnail

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



7419
7420
7421
# File 'lib/google/apis/youtube_v3/classes.rb', line 7419

def standard
  @standard
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7426
7427
7428
7429
7430
7431
7432
# File 'lib/google/apis/youtube_v3/classes.rb', line 7426

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