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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ VideoCategorySnippet

Returns a new instance of VideoCategorySnippet.



8300
8301
8302
# File 'lib/google/apis/youtube_v3/classes.rb', line 8300

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

Instance Attribute Details

#assignableBoolean Also known as: assignable?

Corresponds to the JSON property assignable

Returns:

  • (Boolean)


8287
8288
8289
# File 'lib/google/apis/youtube_v3/classes.rb', line 8287

def assignable
  @assignable
end

#channel_idString

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

Returns:

  • (String)


8293
8294
8295
# File 'lib/google/apis/youtube_v3/classes.rb', line 8293

def channel_id
  @channel_id
end

#titleString

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

Returns:

  • (String)


8298
8299
8300
# File 'lib/google/apis/youtube_v3/classes.rb', line 8298

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8305
8306
8307
8308
8309
# File 'lib/google/apis/youtube_v3/classes.rb', line 8305

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