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

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ VideoMediaMetadata

Returns a new instance of VideoMediaMetadata.



1852
1853
1854
# File 'generated/google/apis/drive_v3/classes.rb', line 1852

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

Instance Attribute Details

#duration_millisFixnum

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

Returns:

  • (Fixnum)


1840
1841
1842
# File 'generated/google/apis/drive_v3/classes.rb', line 1840

def duration_millis
  @duration_millis
end

#heightFixnum

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

Returns:

  • (Fixnum)


1845
1846
1847
# File 'generated/google/apis/drive_v3/classes.rb', line 1845

def height
  @height
end

#widthFixnum

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

Returns:

  • (Fixnum)


1850
1851
1852
# File 'generated/google/apis/drive_v3/classes.rb', line 1850

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1857
1858
1859
1860
1861
# File 'generated/google/apis/drive_v3/classes.rb', line 1857

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