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.
277 278 279 |
# File 'lib/cohere/transcribe/types.rb', line 277 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
276 277 278 |
# File 'lib/cohere/transcribe/types.rb', line 276 def end @end end |
#start ⇒ Object (readonly)
Returns the value of attribute start
276 277 278 |
# File 'lib/cohere/transcribe/types.rb', line 276 def start @start end |
#text ⇒ Object (readonly)
Returns the value of attribute text
276 277 278 |
# File 'lib/cohere/transcribe/types.rb', line 276 def text @text end |
Class Method Details
.new ⇒ SubtitleCue
119 |
# File 'sig/cohere/transcribe.rbs', line 119
def self.new: (start: Float, end: Float, text: String) -> SubtitleCue
|