Class: Google::Apis::DriveV3::File::VideoMediaMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drive_v3/classes.rb,
lib/google/apis/drive_v3/representations.rb,
lib/google/apis/drive_v3/representations.rb

Overview

Output only. Additional metadata about video media. This may not be available immediately upon upload.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VideoMediaMetadata

Returns a new instance of VideoMediaMetadata.



2470
2471
2472
# File 'lib/google/apis/drive_v3/classes.rb', line 2470

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

Instance Attribute Details

#duration_millisFixnum

Output only. The duration of the video in milliseconds. Corresponds to the JSON property durationMillis

Returns:

  • (Fixnum)


2458
2459
2460
# File 'lib/google/apis/drive_v3/classes.rb', line 2458

def duration_millis
  @duration_millis
end

#heightFixnum

Output only. The height of the video in pixels. Corresponds to the JSON property height

Returns:

  • (Fixnum)


2463
2464
2465
# File 'lib/google/apis/drive_v3/classes.rb', line 2463

def height
  @height
end

#widthFixnum

Output only. The width of the video in pixels. Corresponds to the JSON property width

Returns:

  • (Fixnum)


2468
2469
2470
# File 'lib/google/apis/drive_v3/classes.rb', line 2468

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2475
2476
2477
2478
2479
# File 'lib/google/apis/drive_v3/classes.rb', line 2475

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