Class: Cohere::Transcribe::ProgressEvent
- Inherits:
-
Data
- Object
- Data
- Cohere::Transcribe::ProgressEvent
- Defined in:
- lib/cohere/transcribe/types.rb,
sig/cohere/transcribe.rbs
Overview
A serialized message or bounded progress update from a run.
Instance Attribute Summary collapse
-
#current ⇒ Object
readonly
Returns the value of attribute current.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#stage ⇒ Object
readonly
Returns the value of attribute stage.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(stage:, message: nil, current: nil, total: nil) ⇒ ProgressEvent
constructor
A new instance of ProgressEvent.
Constructor Details
#initialize(stage:, message: nil, current: nil, total: nil) ⇒ ProgressEvent
Returns a new instance of ProgressEvent.
435 436 437 438 439 440 441 442 |
# File 'lib/cohere/transcribe/types.rb', line 435 def initialize(stage:, message: nil, current: nil, total: nil) super( stage: TypesSupport.immutable(stage), message: TypesSupport.immutable(), current: current, total: total ) end |
Instance Attribute Details
#current ⇒ Object (readonly)
Returns the value of attribute current
434 435 436 |
# File 'lib/cohere/transcribe/types.rb', line 434 def current @current end |
#message ⇒ Object (readonly)
Returns the value of attribute message
434 435 436 |
# File 'lib/cohere/transcribe/types.rb', line 434 def @message end |
#stage ⇒ Object (readonly)
Returns the value of attribute stage
434 435 436 |
# File 'lib/cohere/transcribe/types.rb', line 434 def stage @stage end |
#total ⇒ Object (readonly)
Returns the value of attribute total
434 435 436 |
# File 'lib/cohere/transcribe/types.rb', line 434 def total @total end |
Class Method Details
.new ⇒ ProgressEvent
187 |
# File 'sig/cohere/transcribe.rbs', line 187
def self.new: (stage: String, ?message: String?, ?current: Integer?, ?total: Integer?) -> ProgressEvent
|