Class: Google::Apis::YoutubeV3::VideoStatsContentDetails

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

Details about the content of a YouTube Video. This is a subset of the information in VideoContentDetails specifically for the Videos.stats API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VideoStatsContentDetails

Returns a new instance of VideoStatsContentDetails.



9278
9279
9280
# File 'lib/google/apis/youtube_v3/classes.rb', line 9278

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

Instance Attribute Details

#durationString

Output only. The length of the video. The property value is a google. protobuf.Duration object. Corresponds to the JSON property duration

Returns:

  • (String)


9276
9277
9278
# File 'lib/google/apis/youtube_v3/classes.rb', line 9276

def duration
  @duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9283
9284
9285
# File 'lib/google/apis/youtube_v3/classes.rb', line 9283

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