Class: Google::Apis::YoutubeV3::WatchSettings

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
more...

Overview

Branding properties for the watch. All deprecated.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WatchSettings

Returns a new instance of WatchSettings.

[View source]

9209
9210
9211
# File 'lib/google/apis/youtube_v3/classes.rb', line 9209

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#background_colorString

The text color for the video watch page's branded area. Corresponds to the JSON property backgroundColor

Returns:

  • (String)

9196
9197
9198
# File 'lib/google/apis/youtube_v3/classes.rb', line 9196

def background_color
  @background_color
end

An ID that uniquely identifies a playlist that displays next to the video player. Corresponds to the JSON property featuredPlaylistId

Returns:

  • (String)

9202
9203
9204
# File 'lib/google/apis/youtube_v3/classes.rb', line 9202

def featured_playlist_id
  @featured_playlist_id
end

#text_colorString

The background color for the video watch page's branded area. Corresponds to the JSON property textColor

Returns:

  • (String)

9207
9208
9209
# File 'lib/google/apis/youtube_v3/classes.rb', line 9207

def text_color
  @text_color
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

9214
9215
9216
9217
9218
# File 'lib/google/apis/youtube_v3/classes.rb', line 9214

def update!(**args)
  @background_color = args[:background_color] if args.key?(:background_color)
  @featured_playlist_id = args[:featured_playlist_id] if args.key?(:featured_playlist_id)
  @text_color = args[:text_color] if args.key?(:text_color)
end