Class: Google::Apis::DfareportingV4::VideoOffset

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

Overview

Video Offset

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VideoOffset

Returns a new instance of VideoOffset.



13258
13259
13260
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13258

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)


13250
13251
13252
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13250

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)


13256
13257
13258
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13256

def offset_seconds
  @offset_seconds
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13263
13264
13265
13266
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 13263

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