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.



9163
9164
9165
# File 'lib/google/apis/youtube_v3/classes.rb', line 9163

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)


9161
9162
9163
# File 'lib/google/apis/youtube_v3/classes.rb', line 9161

def duration
  @duration
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9168
9169
9170
# File 'lib/google/apis/youtube_v3/classes.rb', line 9168

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