Class: GetStream::Generated::Models::CallClosedCaption

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/call_closed_caption.rb

Overview

CallClosedCaption represents a closed caption of a call.

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(attributes = {}) ⇒ CallClosedCaption

Initialize with attributes



41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/getstream_ruby/generated/models/call_closed_caption.rb', line 41

def initialize(attributes = {})
  super(attributes)
  @end_time = attributes[:end_time] || attributes['end_time']
  @id = attributes[:id] || attributes['id']
  @language = attributes[:language] || attributes['language']
  @speaker_id = attributes[:speaker_id] || attributes['speaker_id']
  @start_time = attributes[:start_time] || attributes['start_time']
  @text = attributes[:text] || attributes['text']
  @translated = attributes[:translated] || attributes['translated']
  @user = attributes[:user] || attributes['user']
  @service = attributes[:service] || attributes['service'] || nil
end

Instance Attribute Details

#end_timeDateTime

Returns:

  • (DateTime)


14
15
16
# File 'lib/getstream_ruby/generated/models/call_closed_caption.rb', line 14

def end_time
  @end_time
end

#idString

Returns:

  • (String)


17
18
19
# File 'lib/getstream_ruby/generated/models/call_closed_caption.rb', line 17

def id
  @id
end

#languageString

Returns:

  • (String)


20
21
22
# File 'lib/getstream_ruby/generated/models/call_closed_caption.rb', line 20

def language
  @language
end

#serviceString

Returns:

  • (String)


38
39
40
# File 'lib/getstream_ruby/generated/models/call_closed_caption.rb', line 38

def service
  @service
end

#speaker_idString

Returns:

  • (String)


23
24
25
# File 'lib/getstream_ruby/generated/models/call_closed_caption.rb', line 23

def speaker_id
  @speaker_id
end

#start_timeDateTime

Returns:

  • (DateTime)


26
27
28
# File 'lib/getstream_ruby/generated/models/call_closed_caption.rb', line 26

def start_time
  @start_time
end

#textString

Returns:

  • (String)


29
30
31
# File 'lib/getstream_ruby/generated/models/call_closed_caption.rb', line 29

def text
  @text
end

#translatedBoolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/getstream_ruby/generated/models/call_closed_caption.rb', line 32

def translated
  @translated
end

#userUserResponse

Returns:



35
36
37
# File 'lib/getstream_ruby/generated/models/call_closed_caption.rb', line 35

def user
  @user
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/getstream_ruby/generated/models/call_closed_caption.rb', line 55

def self.json_field_mappings
  {
    end_time: 'end_time',
    id: 'id',
    language: 'language',
    speaker_id: 'speaker_id',
    start_time: 'start_time',
    text: 'text',
    translated: 'translated',
    user: 'user',
    service: 'service'
  }
end