Class: Google::Apis::DriveV2::File::VideoMediaMetadata

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VideoMediaMetadata

Returns a new instance of VideoMediaMetadata.



3037
3038
3039
# File 'lib/google/apis/drive_v2/classes.rb', line 3037

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)


3025
3026
3027
# File 'lib/google/apis/drive_v2/classes.rb', line 3025

def duration_millis
  @duration_millis
end

#heightFixnum

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

Returns:

  • (Fixnum)


3030
3031
3032
# File 'lib/google/apis/drive_v2/classes.rb', line 3030

def height
  @height
end

#widthFixnum

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

Returns:

  • (Fixnum)


3035
3036
3037
# File 'lib/google/apis/drive_v2/classes.rb', line 3035

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3042
3043
3044
3045
3046
# File 'lib/google/apis/drive_v2/classes.rb', line 3042

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