Class: Google::Apis::DisplayvideoV1::AudioVideoOffset
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV1::AudioVideoOffset
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/displayvideo_v1/classes.rb,
generated/google/apis/displayvideo_v1/representations.rb,
generated/google/apis/displayvideo_v1/representations.rb
Overview
The length an audio or a video has been played.
Instance Attribute Summary collapse
-
#percentage ⇒ Fixnum
The offset in percentage of the audio or video duration.
-
#seconds ⇒ Fixnum
The offset in seconds from the start of the audio or video.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AudioVideoOffset
constructor
A new instance of AudioVideoOffset.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AudioVideoOffset
Returns a new instance of AudioVideoOffset.
1117 1118 1119 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1117 def initialize(**args) update!(**args) end |
Instance Attribute Details
#percentage ⇒ Fixnum
The offset in percentage of the audio or video duration.
Corresponds to the JSON property percentage
1110 1111 1112 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1110 def percentage @percentage end |
#seconds ⇒ Fixnum
The offset in seconds from the start of the audio or video.
Corresponds to the JSON property seconds
1115 1116 1117 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1115 def seconds @seconds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1122 1123 1124 1125 |
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1122 def update!(**args) @percentage = args[:percentage] if args.key?(:percentage) @seconds = args[:seconds] if args.key?(:seconds) end |