Class: Google::Apis::DisplayvideoV3::AudioVideoOffset
- Inherits:
-
Object
- Object
- Google::Apis::DisplayvideoV3::AudioVideoOffset
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/displayvideo_v3/classes.rb,
lib/google/apis/displayvideo_v3/representations.rb,
lib/google/apis/displayvideo_v3/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.
1940 1941 1942 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1940 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
1933 1934 1935 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1933 def percentage @percentage end |
#seconds ⇒ Fixnum
The offset in seconds from the start of the audio or video.
Corresponds to the JSON property seconds
1938 1939 1940 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1938 def seconds @seconds end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1945 1946 1947 1948 |
# File 'lib/google/apis/displayvideo_v3/classes.rb', line 1945 def update!(**args) @percentage = args[:percentage] if args.key?(:percentage) @seconds = args[:seconds] if args.key?(:seconds) end |