Class: Google::Apis::DriveV3::File::VideoMediaMetadata
- Inherits:
-
Object
- Object
- Google::Apis::DriveV3::File::VideoMediaMetadata
- 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
-
#duration_millis ⇒ Fixnum
Output only.
-
#height ⇒ Fixnum
Output only.
-
#width ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VideoMediaMetadata
constructor
A new instance of VideoMediaMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VideoMediaMetadata
Returns a new instance of VideoMediaMetadata.
3007 3008 3009 |
# File 'lib/google/apis/drive_v3/classes.rb', line 3007 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration_millis ⇒ Fixnum
Output only. The duration of the video in milliseconds.
Corresponds to the JSON property durationMillis
2995 2996 2997 |
# File 'lib/google/apis/drive_v3/classes.rb', line 2995 def duration_millis @duration_millis end |
#height ⇒ Fixnum
Output only. The height of the video in pixels.
Corresponds to the JSON property height
3000 3001 3002 |
# File 'lib/google/apis/drive_v3/classes.rb', line 3000 def height @height end |
#width ⇒ Fixnum
Output only. The width of the video in pixels.
Corresponds to the JSON property width
3005 3006 3007 |
# File 'lib/google/apis/drive_v3/classes.rb', line 3005 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3012 3013 3014 3015 3016 |
# File 'lib/google/apis/drive_v3/classes.rb', line 3012 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 |