Class: Google::Apis::DisplayvideoV1::AudioVideoOffset

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AudioVideoOffset

Returns a new instance of AudioVideoOffset.



1085
1086
1087
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1085

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)


1078
1079
1080
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1078

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)


1083
1084
1085
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1083

def seconds
  @seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1090
1091
1092
1093
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 1090

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