Class: MkvToolNix::Types::Merge::TrackOrder
- Inherits:
-
Object
- Object
- MkvToolNix::Types::Merge::TrackOrder
- Defined in:
- lib/mkvtoolnix/types/merge/output_control.rb
Instance Attribute Summary collapse
-
#file_index ⇒ Object
readonly
Returns the value of attribute file_index.
-
#track_id ⇒ Object
readonly
Returns the value of attribute track_id.
Instance Method Summary collapse
-
#initialize(file_index, track_id) ⇒ TrackOrder
constructor
A new instance of TrackOrder.
- #to_s ⇒ Object
Constructor Details
#initialize(file_index, track_id) ⇒ TrackOrder
Returns a new instance of TrackOrder.
113 114 115 116 |
# File 'lib/mkvtoolnix/types/merge/output_control.rb', line 113 def initialize(file_index, track_id) @file_index = file_index @track_id = track_id end |
Instance Attribute Details
#file_index ⇒ Object (readonly)
Returns the value of attribute file_index.
107 108 109 |
# File 'lib/mkvtoolnix/types/merge/output_control.rb', line 107 def file_index @file_index end |
#track_id ⇒ Object (readonly)
Returns the value of attribute track_id.
107 108 109 |
# File 'lib/mkvtoolnix/types/merge/output_control.rb', line 107 def track_id @track_id end |
Instance Method Details
#to_s ⇒ Object
109 110 111 |
# File 'lib/mkvtoolnix/types/merge/output_control.rb', line 109 def to_s "#{@file_index}:#{@track_id}" end |