Class: Google::Apis::YoutubeV3::VideoSuggestionsTagSuggestion
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::VideoSuggestionsTagSuggestion
- 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
-
#category_restricts ⇒ Array<String>
A set of video categories for which the tag is relevant.
-
#tag ⇒ String
The keyword tag suggested for the video.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VideoSuggestionsTagSuggestion
constructor
A new instance of VideoSuggestionsTagSuggestion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VideoSuggestionsTagSuggestion
Returns a new instance of VideoSuggestionsTagSuggestion.
8287 8288 8289 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 8287 def initialize(**args) update!(**args) end |
Instance Attribute Details
#category_restricts ⇒ Array<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
8280 8281 8282 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 8280 def category_restricts @category_restricts end |
#tag ⇒ String
The keyword tag suggested for the video.
Corresponds to the JSON property tag
8285 8286 8287 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 8285 def tag @tag end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8292 8293 8294 8295 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 8292 def update!(**args) @category_restricts = args[:category_restricts] if args.key?(:category_restricts) @tag = args[:tag] if args.key?(:tag) end |