Class: OmniAI::Transcribe::Transcription

Inherits:
Object
  • Object
show all
Defined in:
lib/omniai/transcribe/transcription.rb

Overview

A transcription returned by the API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text:, model:, format:) ⇒ Transcription

Returns a new instance of Transcription.

Parameters:

  • text (String)
  • model (String)
  • format (String)


12
13
14
15
16
# File 'lib/omniai/transcribe/transcription.rb', line 12

def initialize(text:, model:, format:)
  @text = text
  @model = model
  @format = format
end

Instance Attribute Details

#formatObject

Returns the value of attribute format.



7
8
9
# File 'lib/omniai/transcribe/transcription.rb', line 7

def format
  @format
end

#modelObject

Returns the value of attribute model.



7
8
9
# File 'lib/omniai/transcribe/transcription.rb', line 7

def model
  @model
end

#textObject

Returns the value of attribute text.



7
8
9
# File 'lib/omniai/transcribe/transcription.rb', line 7

def text
  @text
end

Instance Method Details

#inspectString

Returns:

  • (String)


19
20
21
# File 'lib/omniai/transcribe/transcription.rb', line 19

def inspect
  "#<#{self.class} text=#{text.inspect}>"
end