Class: Google::Apis::DfareportingV2_7::VideoOffset

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

Overview

Video Offset

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) ⇒ VideoOffset

Returns a new instance of VideoOffset



11840
11841
11842
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 11840

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

Instance Attribute Details

#offset_percentageFixnum

Duration, as a percentage of video duration. Do not set when offsetSeconds is set. Acceptable values are 0 to 100, inclusive. Corresponds to the JSON property offsetPercentage

Returns:

  • (Fixnum)


11832
11833
11834
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 11832

def offset_percentage
  @offset_percentage
end

#offset_secondsFixnum

Duration, in seconds. Do not set when offsetPercentage is set. Acceptable values are 0 to 86399, inclusive. Corresponds to the JSON property offsetSeconds

Returns:

  • (Fixnum)


11838
11839
11840
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 11838

def offset_seconds
  @offset_seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11845
11846
11847
11848
# File 'generated/google/apis/dfareporting_v2_7/classes.rb', line 11845

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