Class: Google::Apis::YoutubeV3::GuideCategory
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::GuideCategory
- 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 guideCategory resource identifies a category that YouTube algorithmically assigns based on a channel's content or other indicators, such as the channel' s popularity. The list is similar to video categories, with the difference being that a video's uploader can assign a video category but only YouTube can assign a channel category.
Instance Attribute Summary collapse
-
#etag ⇒ String
Etag of this resource.
-
#id ⇒ String
The ID that YouTube uses to uniquely identify the guide category.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#snippet ⇒ Google::Apis::YoutubeV3::GuideCategorySnippet
Basic details about a guide category.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GuideCategory
constructor
A new instance of GuideCategory.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GuideCategory
Returns a new instance of GuideCategory
2815 2816 2817 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2815 def initialize(**args) update!(**args) end |
Instance Attribute Details
#etag ⇒ String
Etag of this resource.
Corresponds to the JSON property etag
2797 2798 2799 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2797 def etag @etag end |
#id ⇒ String
The ID that YouTube uses to uniquely identify the guide category.
Corresponds to the JSON property id
2802 2803 2804 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2802 def id @id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "youtube#
guideCategory".
Corresponds to the JSON property kind
2808 2809 2810 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2808 def kind @kind end |
#snippet ⇒ Google::Apis::YoutubeV3::GuideCategorySnippet
Basic details about a guide category.
Corresponds to the JSON property snippet
2813 2814 2815 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2813 def snippet @snippet end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2820 2821 2822 2823 2824 2825 |
# File 'generated/google/apis/youtube_v3/classes.rb', line 2820 def update!(**args) @etag = args[:etag] if args.key?(:etag) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @snippet = args[:snippet] if args.key?(:snippet) end |