Class: Google::Apis::YoutubeV3::GuideCategory

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GuideCategory

Returns a new instance of GuideCategory.



2967
2968
2969
# File 'generated/google/apis/youtube_v3/classes.rb', line 2967

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

Instance Attribute Details

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


2949
2950
2951
# File 'generated/google/apis/youtube_v3/classes.rb', line 2949

def etag
  @etag
end

#idString

The ID that YouTube uses to uniquely identify the guide category. Corresponds to the JSON property id

Returns:

  • (String)


2954
2955
2956
# File 'generated/google/apis/youtube_v3/classes.rb', line 2954

def id
  @id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "youtube# guideCategory". Corresponds to the JSON property kind

Returns:

  • (String)


2960
2961
2962
# File 'generated/google/apis/youtube_v3/classes.rb', line 2960

def kind
  @kind
end

#snippetGoogle::Apis::YoutubeV3::GuideCategorySnippet

Basic details about a guide category. Corresponds to the JSON property snippet



2965
2966
2967
# File 'generated/google/apis/youtube_v3/classes.rb', line 2965

def snippet
  @snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2972
2973
2974
2975
2976
2977
# File 'generated/google/apis/youtube_v3/classes.rb', line 2972

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