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.



9311
9312
9313
# File 'lib/google/apis/youtube_v3/classes.rb', line 9311

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)


9309
9310
9311
# File 'lib/google/apis/youtube_v3/classes.rb', line 9309

def duration
  @duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9316
9317
9318
# File 'lib/google/apis/youtube_v3/classes.rb', line 9316

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