Class: GetStream::Generated::Models::TranscriptionSettingsRequest
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::TranscriptionSettingsRequest
show all
- Defined in:
- lib/getstream_ruby/generated/models/transcription_settings_request.rb
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
Initialize with attributes
29
30
31
32
33
34
35
36
|
# File 'lib/getstream_ruby/generated/models/transcription_settings_request.rb', line 29
def initialize(attributes = {})
super(attributes)
@closed_caption_mode = attributes[:closed_caption_mode] || attributes['closed_caption_mode'] || nil
@language = attributes[:language] || attributes['language'] || nil
@mode = attributes[:mode] || attributes['mode'] || nil
@speech_segment_config = attributes[:speech_segment_config] || attributes['speech_segment_config'] || nil
@translation = attributes[:translation] || attributes['translation'] || nil
end
|
Instance Attribute Details
#closed_caption_mode ⇒ String
14
15
16
|
# File 'lib/getstream_ruby/generated/models/transcription_settings_request.rb', line 14
def closed_caption_mode
@closed_caption_mode
end
|
#language ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/transcription_settings_request.rb', line 17
def language
@language
end
|
#mode ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/transcription_settings_request.rb', line 20
def mode
@mode
end
|
23
24
25
|
# File 'lib/getstream_ruby/generated/models/transcription_settings_request.rb', line 23
def speech_segment_config
@speech_segment_config
end
|
26
27
28
|
# File 'lib/getstream_ruby/generated/models/transcription_settings_request.rb', line 26
def translation
@translation
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
39
40
41
42
43
44
45
46
47
|
# File 'lib/getstream_ruby/generated/models/transcription_settings_request.rb', line 39
def self.json_field_mappings
{
closed_caption_mode: 'closed_caption_mode',
language: 'language',
mode: 'mode',
speech_segment_config: 'speech_segment_config',
translation: 'translation'
}
end
|