Class: Cohere::Transcribe::Runtime::WordPipeline::Final
- Inherits:
-
Data
- Object
- Data
- Cohere::Transcribe::Runtime::WordPipeline::Final
- Defined in:
- lib/cohere/transcribe/runtime/word_pipeline.rb
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(index:, result:) ⇒ Final
constructor
A new instance of Final.
Constructor Details
#initialize(index:, result:) ⇒ Final
Returns a new instance of Final.
78 79 80 81 82 83 |
# File 'lib/cohere/transcribe/runtime/word_pipeline.rb', line 78 def initialize(index:, result:) index = Integer(index) raise ArgumentError, "word-pipeline index must be nonnegative" if index.negative? super end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index
77 78 79 |
# File 'lib/cohere/transcribe/runtime/word_pipeline.rb', line 77 def index @index end |
#result ⇒ Object (readonly)
Returns the value of attribute result
77 78 79 |
# File 'lib/cohere/transcribe/runtime/word_pipeline.rb', line 77 def result @result end |