Class: OmniAI::Transcribe::Transcription
- Inherits:
-
Object
- Object
- OmniAI::Transcribe::Transcription
- Defined in:
- lib/omniai/transcribe/transcription.rb
Overview
A transcription returned by the API.
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#model ⇒ Object
Returns the value of attribute model.
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text:, model:, format:) ⇒ Transcription
constructor
A new instance of Transcription.
- #inspect ⇒ String
Constructor Details
#initialize(text:, model:, format:) ⇒ Transcription
Returns a new instance of Transcription.
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
#format ⇒ Object
Returns the value of attribute format.
7 8 9 |
# File 'lib/omniai/transcribe/transcription.rb', line 7 def format @format end |
#model ⇒ Object
Returns the value of attribute model.
7 8 9 |
# File 'lib/omniai/transcribe/transcription.rb', line 7 def model @model end |
#text ⇒ Object
Returns the value of attribute text.
7 8 9 |
# File 'lib/omniai/transcribe/transcription.rb', line 7 def text @text end |
Instance Method Details
#inspect ⇒ String
19 20 21 |
# File 'lib/omniai/transcribe/transcription.rb', line 19 def inspect "#<#{self.class} text=#{text.inspect}>" end |