Class: Google::Apis::TranscoderV1beta1::TextInput
- Inherits:
-
Object
- Object
- Google::Apis::TranscoderV1beta1::TextInput
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/transcoder_v1beta1/classes.rb,
lib/google/apis/transcoder_v1beta1/representations.rb,
lib/google/apis/transcoder_v1beta1/representations.rb
Overview
Identifies which input file and track should be used.
Instance Attribute Summary collapse
-
#key ⇒ String
Required.
-
#track ⇒ Fixnum
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TextInput
constructor
A new instance of TextInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TextInput
Returns a new instance of TextInput.
1528 1529 1530 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1528 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Required. The Input.key
that identifies the input file.
Corresponds to the JSON property key
1521 1522 1523 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1521 def key @key end |
#track ⇒ Fixnum
Required. The zero-based index of the track in the input file.
Corresponds to the JSON property track
1526 1527 1528 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1526 def track @track end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1533 1534 1535 1536 |
# File 'lib/google/apis/transcoder_v1beta1/classes.rb', line 1533 def update!(**args) @key = args[:key] if args.key?(:key) @track = args[:track] if args.key?(:track) end |