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

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

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.



8626
8627
8628
# File 'generated/google/apis/youtube_v3/classes.rb', line 8626

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)


8613
8614
8615
# File 'generated/google/apis/youtube_v3/classes.rb', line 8613

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)


8619
8620
8621
# File 'generated/google/apis/youtube_v3/classes.rb', line 8619

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)


8624
8625
8626
# File 'generated/google/apis/youtube_v3/classes.rb', line 8624

def text_color
  @text_color
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8631
8632
8633
8634
8635
# File 'generated/google/apis/youtube_v3/classes.rb', line 8631

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