Class: Google::Apis::YoutubeV3::VideoSuggestionsTagSuggestion

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

A single tag suggestion with it's relevance information.

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) ⇒ VideoSuggestionsTagSuggestion

Returns a new instance of VideoSuggestionsTagSuggestion



8380
8381
8382
# File 'generated/google/apis/youtube_v3/classes.rb', line 8380

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

Instance Attribute Details

#category_restrictsArray<String>

A set of video categories for which the tag is relevant. You can use this information to display appropriate tag suggestions based on the video category that the video uploader associates with the video. By default, tag suggestions are relevant for all categories if there are no restricts defined for the keyword. Corresponds to the JSON property categoryRestricts

Returns:

  • (Array<String>)


8373
8374
8375
# File 'generated/google/apis/youtube_v3/classes.rb', line 8373

def category_restricts
  @category_restricts
end

#tagString

The keyword tag suggested for the video. Corresponds to the JSON property tag

Returns:

  • (String)


8378
8379
8380
# File 'generated/google/apis/youtube_v3/classes.rb', line 8378

def tag
  @tag
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8385
8386
8387
8388
# File 'generated/google/apis/youtube_v3/classes.rb', line 8385

def update!(**args)
  @category_restricts = args[:category_restricts] if args.key?(:category_restricts)
  @tag = args[:tag] if args.key?(:tag)
end