Class: Cohere::Transcribe::SubtitleCue
- Inherits:
-
Data
- Object
- Data
- Cohere::Transcribe::SubtitleCue
- Defined in:
- lib/cohere/transcribe/types.rb,
sig/cohere/transcribe.rbs
Overview
One rendered subtitle cue.
Instance Attribute Summary collapse
-
#end ⇒ Object
readonly
Returns the value of attribute end.
-
#start ⇒ Object
readonly
Returns the value of attribute start.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(start:, end:, text:) ⇒ SubtitleCue
constructor
A new instance of SubtitleCue.
Constructor Details
#initialize(start:, end:, text:) ⇒ SubtitleCue
Returns a new instance of SubtitleCue.
263 264 265 |
# File 'lib/cohere/transcribe/types.rb', line 263 def initialize(start:, end:, text:) super(start: start, end: binding.local_variable_get(:end), text: TypesSupport.immutable(text)) end |
Instance Attribute Details
#end ⇒ Object (readonly)
Returns the value of attribute end
262 263 264 |
# File 'lib/cohere/transcribe/types.rb', line 262 def end @end end |
#start ⇒ Object (readonly)
Returns the value of attribute start
262 263 264 |
# File 'lib/cohere/transcribe/types.rb', line 262 def start @start end |
#text ⇒ Object (readonly)
Returns the value of attribute text
262 263 264 |
# File 'lib/cohere/transcribe/types.rb', line 262 def text @text end |
Class Method Details
.new ⇒ SubtitleCue
118 |
# File 'sig/cohere/transcribe.rbs', line 118
def self.new: (start: Float, end: Float, text: String) -> SubtitleCue
|