Class: Google::Apis::DisplayvideoV2::AudioVideoOffset

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

Overview

The length an audio or a video has been played.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AudioVideoOffset

Returns a new instance of AudioVideoOffset.



1378
1379
1380
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 1378

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#percentageFixnum

The offset in percentage of the audio or video duration. Corresponds to the JSON property percentage

Returns:

  • (Fixnum)


1371
1372
1373
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 1371

def percentage
  @percentage
end

#secondsFixnum

The offset in seconds from the start of the audio or video. Corresponds to the JSON property seconds

Returns:

  • (Fixnum)


1376
1377
1378
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 1376

def seconds
  @seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1383
1384
1385
1386
# File 'lib/google/apis/displayvideo_v2/classes.rb', line 1383

def update!(**args)
  @percentage = args[:percentage] if args.key?(:percentage)
  @seconds = args[:seconds] if args.key?(:seconds)
end