Class: Google::Apis::TranscoderV1::EditAtom

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

Edit atom.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EditAtom

Returns a new instance of EditAtom.



630
631
632
# File 'lib/google/apis/transcoder_v1/classes.rb', line 630

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

Instance Attribute Details

#end_time_offsetString

End time in seconds for the atom, relative to the input file timeline. When end_time_offset is not specified, the inputs are used until the end of the atom. Corresponds to the JSON property endTimeOffset

Returns:

  • (String)


611
612
613
# File 'lib/google/apis/transcoder_v1/classes.rb', line 611

def end_time_offset
  @end_time_offset
end

#inputsArray<String>

List of Input.key values identifying files that should be used in this atom. The listed inputs must have the same timeline. Corresponds to the JSON property inputs

Returns:

  • (Array<String>)


617
618
619
# File 'lib/google/apis/transcoder_v1/classes.rb', line 617

def inputs
  @inputs
end

#keyString

A unique key for this atom. Must be specified when using advanced mapping. Corresponds to the JSON property key

Returns:

  • (String)


622
623
624
# File 'lib/google/apis/transcoder_v1/classes.rb', line 622

def key
  @key
end

#start_time_offsetString

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

Returns:

  • (String)


628
629
630
# File 'lib/google/apis/transcoder_v1/classes.rb', line 628

def start_time_offset
  @start_time_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



635
636
637
638
639
640
# File 'lib/google/apis/transcoder_v1/classes.rb', line 635

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