Class: Cohere::Transcribe::ProgressEvent

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(stage:, message: nil, current: nil, total: nil) ⇒ ProgressEvent



449
450
451
452
453
454
455
456
# File 'lib/cohere/transcribe/types.rb', line 449

def initialize(stage:, message: nil, current: nil, total: nil)
  super(
    stage: TypesSupport.immutable(stage),
    message: TypesSupport.immutable(message),
    current: current,
    total: total
  )
end

Instance Attribute Details

#current ⇒ Object (readonly)

Returns the value of attribute current



448
449
450
# File 'lib/cohere/transcribe/types.rb', line 448

def current
  @current
end

#message ⇒ Object (readonly)

Returns the value of attribute message



448
449
450
# File 'lib/cohere/transcribe/types.rb', line 448

def message
  @message
end

#stage ⇒ Object (readonly)

Returns the value of attribute stage



448
449
450
# File 'lib/cohere/transcribe/types.rb', line 448

def stage
  @stage
end

#total ⇒ Object (readonly)

Returns the value of attribute total



448
449
450
# File 'lib/cohere/transcribe/types.rb', line 448

def total
  @total
end

Class Method Details

.new ⇒ ProgressEvent



188
# File 'sig/cohere/transcribe.rbs', line 188

def self.new: (stage: String, ?message: String?, ?current: Integer?, ?total: Integer?) -> ProgressEvent