Class: GetStream::Generated::Models::CallResponse

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

Overview

Represents 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 = {}) ⇒ CallResponse

Initialize with attributes



86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 86

def initialize(attributes = {})
  super(attributes)
  @backstage = attributes[:backstage] || attributes['backstage']
  @captioning = attributes[:captioning] || attributes['captioning']
  @cid = attributes[:cid] || attributes['cid']
  @created_at = attributes[:created_at] || attributes['created_at']
  @current_session_id = attributes[:current_session_id] || attributes['current_session_id']
  @id = attributes[:id] || attributes['id']
  @recording = attributes[:recording] || attributes['recording']
  @transcribing = attributes[:transcribing] || attributes['transcribing']
  @translating = attributes[:translating] || attributes['translating']
  @type = attributes[:type] || attributes['type']
  @updated_at = attributes[:updated_at] || attributes['updated_at']
  @blocked_user_ids = attributes[:blocked_user_ids] || attributes['blocked_user_ids']
  @created_by = attributes[:created_by] || attributes['created_by']
  @custom = attributes[:custom] || attributes['custom']
  @egress = attributes[:egress] || attributes['egress']
  @ingress = attributes[:ingress] || attributes['ingress']
  @settings = attributes[:settings] || attributes['settings']
  @channel_cid = attributes[:channel_cid] || attributes['channel_cid'] || nil
  @ended_at = attributes[:ended_at] || attributes['ended_at'] || nil
  @join_ahead_time_seconds = attributes[:join_ahead_time_seconds] || attributes['join_ahead_time_seconds'] || nil
  @starts_at = attributes[:starts_at] || attributes['starts_at'] || nil
  @team = attributes[:team] || attributes['team'] || nil
  @session = attributes[:session] || attributes['session'] || nil
  @thumbnails = attributes[:thumbnails] || attributes['thumbnails'] || nil
end

Instance Attribute Details

#backstageBoolean



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

def backstage
  @backstage
end

#blocked_user_idsArray<String>



47
48
49
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 47

def blocked_user_ids
  @blocked_user_ids
end

#captioningBoolean



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

def captioning
  @captioning
end

#channel_cidString



65
66
67
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 65

def channel_cid
  @channel_cid
end

#cidString



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

def cid
  @cid
end

#created_atDateTime



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

def created_at
  @created_at
end

#created_byUserResponse



50
51
52
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 50

def created_by
  @created_by
end

#current_session_idString



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

def current_session_id
  @current_session_id
end

#customObject



53
54
55
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 53

def custom
  @custom
end

#egressEgressResponse



56
57
58
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 56

def egress
  @egress
end

#ended_atDateTime



68
69
70
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 68

def ended_at
  @ended_at
end

#idString



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

def id
  @id
end

#ingressCallIngressResponse



59
60
61
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 59

def ingress
  @ingress
end

#join_ahead_time_secondsInteger



71
72
73
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 71

def join_ahead_time_seconds
  @join_ahead_time_seconds
end

#recordingBoolean



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

def recording
  @recording
end

#sessionCallSessionResponse



80
81
82
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 80

def session
  @session
end

#settingsCallSettingsResponse



62
63
64
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 62

def settings
  @settings
end

#starts_atDateTime



74
75
76
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 74

def starts_at
  @starts_at
end

#teamString



77
78
79
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 77

def team
  @team
end

#thumbnailsThumbnailResponse



83
84
85
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 83

def thumbnails
  @thumbnails
end

#transcribingBoolean



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

def transcribing
  @transcribing
end

#translatingBoolean



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

def translating
  @translating
end

#typeString



41
42
43
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 41

def type
  @type
end

#updated_atDateTime



44
45
46
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 44

def updated_at
  @updated_at
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 115

def self.json_field_mappings
  {
    backstage: 'backstage',
    captioning: 'captioning',
    cid: 'cid',
    created_at: 'created_at',
    current_session_id: 'current_session_id',
    id: 'id',
    recording: 'recording',
    transcribing: 'transcribing',
    translating: 'translating',
    type: 'type',
    updated_at: 'updated_at',
    blocked_user_ids: 'blocked_user_ids',
    created_by: 'created_by',
    custom: 'custom',
    egress: 'egress',
    ingress: 'ingress',
    settings: 'settings',
    channel_cid: 'channel_cid',
    ended_at: 'ended_at',
    join_ahead_time_seconds: 'join_ahead_time_seconds',
    starts_at: 'starts_at',
    team: 'team',
    session: 'session',
    thumbnails: 'thumbnails'
  }
end