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



6877
6878
6879
# File 'generated/google/apis/youtube_v3/classes.rb', line 6877

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



6855
6856
6857
# File 'generated/google/apis/youtube_v3/classes.rb', line 6855

def default
  @default
end

#highGoogle::Apis::YoutubeV3::Thumbnail

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



6860
6861
6862
# File 'generated/google/apis/youtube_v3/classes.rb', line 6860

def high
  @high
end

#maxresGoogle::Apis::YoutubeV3::Thumbnail

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



6865
6866
6867
# File 'generated/google/apis/youtube_v3/classes.rb', line 6865

def maxres
  @maxres
end

#mediumGoogle::Apis::YoutubeV3::Thumbnail

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



6870
6871
6872
# File 'generated/google/apis/youtube_v3/classes.rb', line 6870

def medium
  @medium
end

#standardGoogle::Apis::YoutubeV3::Thumbnail

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



6875
6876
6877
# File 'generated/google/apis/youtube_v3/classes.rb', line 6875

def standard
  @standard
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6882
6883
6884
6885
6886
6887
6888
# File 'generated/google/apis/youtube_v3/classes.rb', line 6882

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