Class: GetStream::Generated::Models::CallResponse
- Defined in:
- lib/getstream_ruby/generated/models/call_response.rb
Overview
Represents a call
Instance Attribute Summary collapse
- #backstage ⇒ Boolean
- #blocked_user_ids ⇒ Array<String>
- #captioning ⇒ Boolean
- #channel_cid ⇒ String
-
#cid ⇒ String
The unique identifier for a call (<type>:<id>).
-
#created_at ⇒ DateTime
Date/time of creation.
- #created_by ⇒ UserResponse
- #current_session_id ⇒ String
-
#custom ⇒ Object
Custom data for this object.
- #egress ⇒ EgressResponse
-
#ended_at ⇒ DateTime
Date/time when the call ended.
-
#id ⇒ String
Call ID.
- #ingress ⇒ CallIngressResponse
- #join_ahead_time_seconds ⇒ Integer
- #recording ⇒ Boolean
- #session ⇒ CallSessionResponse
- #settings ⇒ CallSettingsResponse
-
#starts_at ⇒ DateTime
Date/time when the call will start.
- #team ⇒ String
- #thumbnails ⇒ ThumbnailResponse
- #transcribing ⇒ Boolean
- #translating ⇒ Boolean
-
#type ⇒ String
The type of call.
-
#updated_at ⇒ DateTime
Date/time of the last update.
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ CallResponse
constructor
Initialize with attributes.
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
#backstage ⇒ Boolean
14 15 16 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 14 def backstage @backstage end |
#blocked_user_ids ⇒ Array<String>
47 48 49 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 47 def blocked_user_ids @blocked_user_ids end |
#captioning ⇒ Boolean
17 18 19 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 17 def captioning @captioning end |
#channel_cid ⇒ String
65 66 67 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 65 def channel_cid @channel_cid end |
#cid ⇒ String
Returns The unique identifier for a call (<type>:<id>).
20 21 22 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 20 def cid @cid end |
#created_at ⇒ DateTime
Returns Date/time of creation.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 23 def created_at @created_at end |
#created_by ⇒ UserResponse
50 51 52 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 50 def created_by @created_by end |
#current_session_id ⇒ String
26 27 28 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 26 def current_session_id @current_session_id end |
#custom ⇒ Object
Returns Custom data for this object.
53 54 55 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 53 def custom @custom end |
#egress ⇒ EgressResponse
56 57 58 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 56 def egress @egress end |
#ended_at ⇒ DateTime
Returns Date/time when the call ended.
68 69 70 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 68 def ended_at @ended_at end |
#id ⇒ String
Returns Call ID.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 29 def id @id end |
#ingress ⇒ CallIngressResponse
59 60 61 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 59 def ingress @ingress end |
#join_ahead_time_seconds ⇒ Integer
71 72 73 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 71 def join_ahead_time_seconds @join_ahead_time_seconds end |
#recording ⇒ Boolean
32 33 34 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 32 def recording @recording end |
#session ⇒ CallSessionResponse
80 81 82 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 80 def session @session end |
#settings ⇒ CallSettingsResponse
62 63 64 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 62 def settings @settings end |
#starts_at ⇒ DateTime
Returns Date/time when the call will start.
74 75 76 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 74 def starts_at @starts_at end |
#team ⇒ String
77 78 79 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 77 def team @team end |
#thumbnails ⇒ ThumbnailResponse
83 84 85 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 83 def thumbnails @thumbnails end |
#transcribing ⇒ Boolean
35 36 37 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 35 def transcribing @transcribing end |
#translating ⇒ Boolean
38 39 40 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 38 def translating @translating end |
#type ⇒ String
Returns The type of call.
41 42 43 |
# File 'lib/getstream_ruby/generated/models/call_response.rb', line 41 def type @type end |
#updated_at ⇒ DateTime
Returns Date/time of the last update.
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_mappings ⇒ Object
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 |