Class: Google::Apis::YoutubeV3::Caption

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

A caption resource represents a YouTube caption track. A caption track is associated with exactly one YouTube video.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Caption

Returns a new instance of Caption.



726
727
728
# File 'lib/google/apis/youtube_v3/classes.rb', line 726

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

Instance Attribute Details

#etagString

Etag of this resource. Corresponds to the JSON property etag

Returns:

  • (String)


708
709
710
# File 'lib/google/apis/youtube_v3/classes.rb', line 708

def etag
  @etag
end

#idString

The ID that YouTube uses to uniquely identify the caption track. Corresponds to the JSON property id

Returns:

  • (String)


713
714
715
# File 'lib/google/apis/youtube_v3/classes.rb', line 713

def id
  @id
end

#kindString

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

Returns:

  • (String)


719
720
721
# File 'lib/google/apis/youtube_v3/classes.rb', line 719

def kind
  @kind
end

#snippetGoogle::Apis::YoutubeV3::CaptionSnippet

Basic details about a caption track, such as its language and name. Corresponds to the JSON property snippet



724
725
726
# File 'lib/google/apis/youtube_v3/classes.rb', line 724

def snippet
  @snippet
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



731
732
733
734
735
736
# File 'lib/google/apis/youtube_v3/classes.rb', line 731

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