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

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

Overview

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.



2873
2874
2875
# File 'generated/google/apis/drive_v2/classes.rb', line 2873

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)


2861
2862
2863
# File 'generated/google/apis/drive_v2/classes.rb', line 2861

def duration_millis
  @duration_millis
end

#heightFixnum

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

Returns:

  • (Fixnum)


2866
2867
2868
# File 'generated/google/apis/drive_v2/classes.rb', line 2866

def height
  @height
end

#widthFixnum

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

Returns:

  • (Fixnum)


2871
2872
2873
# File 'generated/google/apis/drive_v2/classes.rb', line 2871

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2878
2879
2880
2881
2882
# File 'generated/google/apis/drive_v2/classes.rb', line 2878

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