Class: Google::Apis::DriveV2::File::VideoMediaMetadata
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::File::VideoMediaMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drive_v2/classes.rb,
lib/google/apis/drive_v2/representations.rb,
lib/google/apis/drive_v2/representations.rb
Overview
Output only. Metadata about video media. This will only be present for video types.
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.
3100 3101 3102 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3100 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
3088 3089 3090 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3088 def duration_millis @duration_millis end |
#height ⇒ Fixnum
Output only. The height of the video in pixels.
Corresponds to the JSON property height
3093 3094 3095 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3093 def height @height end |
#width ⇒ Fixnum
Output only. The width of the video in pixels.
Corresponds to the JSON property width
3098 3099 3100 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3098 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3105 3106 3107 3108 3109 |
# File 'lib/google/apis/drive_v2/classes.rb', line 3105 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 |