Class: Google::Apis::YoutubeV3::GuideCategorySnippet

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

Basic details about a guide 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) ⇒ GuideCategorySnippet

Returns a new instance of GuideCategorySnippet.



2924
2925
2926
# File 'generated/google/apis/youtube_v3/classes.rb', line 2924

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

Instance Attribute Details

#channel_idString

Corresponds to the JSON property channelId

Returns:

  • (String)


2917
2918
2919
# File 'generated/google/apis/youtube_v3/classes.rb', line 2917

def channel_id
  @channel_id
end

#titleString

Description of the guide category. Corresponds to the JSON property title

Returns:

  • (String)


2922
2923
2924
# File 'generated/google/apis/youtube_v3/classes.rb', line 2922

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2929
2930
2931
2932
# File 'generated/google/apis/youtube_v3/classes.rb', line 2929

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