Class: Google::Apis::TranscoderV1::AdBreak

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

Overview

Ad break.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdBreak

Returns a new instance of AdBreak.



35
36
37
# File 'lib/google/apis/transcoder_v1/classes.rb', line 35

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

Instance Attribute Details

#start_time_offsetString

Start time in seconds for the ad break, relative to the output file timeline. The default is 0s. Corresponds to the JSON property startTimeOffset

Returns:

  • (String)


33
34
35
# File 'lib/google/apis/transcoder_v1/classes.rb', line 33

def start_time_offset
  @start_time_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



40
41
42
# File 'lib/google/apis/transcoder_v1/classes.rb', line 40

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