Class: Google::Apis::YoutubeV3::VideoCategorySnippet

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 video category, such as its localized title.

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

Returns a new instance of VideoCategorySnippet



7425
7426
7427
# File 'generated/google/apis/youtube_v3/classes.rb', line 7425

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

Instance Attribute Details

#assignableBoolean Also known as: assignable?

Corresponds to the JSON property assignable

Returns:

  • (Boolean)


7412
7413
7414
# File 'generated/google/apis/youtube_v3/classes.rb', line 7412

def assignable
  @assignable
end

#channel_idString

The YouTube channel that created the video category. Corresponds to the JSON property channelId

Returns:

  • (String)


7418
7419
7420
# File 'generated/google/apis/youtube_v3/classes.rb', line 7418

def channel_id
  @channel_id
end

#titleString

The video category's title. Corresponds to the JSON property title

Returns:

  • (String)


7423
7424
7425
# File 'generated/google/apis/youtube_v3/classes.rb', line 7423

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7430
7431
7432
7433
7434
# File 'generated/google/apis/youtube_v3/classes.rb', line 7430

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