Class: GetStream::Generated::Models::BroadcastInfo
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::BroadcastInfo
show all
- Defined in:
- lib/getstream_ruby/generated/models/broadcast_info.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(attributes = {}) ⇒ BroadcastInfo
Initialize with attributes
41
42
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/getstream_ruby/generated/models/broadcast_info.rb', line 41
def initialize(attributes = {})
super(attributes)
@app_id = attributes[:app_id] || attributes['app_id']
@call_cid = attributes[:call_cid] || attributes['call_cid']
@call_session_id = attributes[:call_session_id] || attributes['call_session_id']
@call_type = attributes[:call_type] || attributes['call_type']
@duration_min = attributes[:duration_min] || attributes['duration_min']
@ended_at = attributes[:ended_at] || attributes['ended_at']
@started_at = attributes[:started_at] || attributes['started_at']
@creators = attributes[:creators] || attributes['creators']
@source_mode = attributes[:source_mode] || attributes['source_mode'] || nil
end
|
Instance Attribute Details
#app_id ⇒ Integer
14
15
16
|
# File 'lib/getstream_ruby/generated/models/broadcast_info.rb', line 14
def app_id
@app_id
end
|
#call_cid ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/broadcast_info.rb', line 17
def call_cid
@call_cid
end
|
#call_session_id ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/broadcast_info.rb', line 20
def call_session_id
@call_session_id
end
|
#call_type ⇒ String
23
24
25
|
# File 'lib/getstream_ruby/generated/models/broadcast_info.rb', line 23
def call_type
@call_type
end
|
#creators ⇒ Array<String>
35
36
37
|
# File 'lib/getstream_ruby/generated/models/broadcast_info.rb', line 35
def creators
@creators
end
|
#duration_min ⇒ Float
26
27
28
|
# File 'lib/getstream_ruby/generated/models/broadcast_info.rb', line 26
def duration_min
@duration_min
end
|
#ended_at ⇒ String
29
30
31
|
# File 'lib/getstream_ruby/generated/models/broadcast_info.rb', line 29
def ended_at
@ended_at
end
|
#source_mode ⇒ String
38
39
40
|
# File 'lib/getstream_ruby/generated/models/broadcast_info.rb', line 38
def source_mode
@source_mode
end
|
#started_at ⇒ String
32
33
34
|
# File 'lib/getstream_ruby/generated/models/broadcast_info.rb', line 32
def started_at
@started_at
end
|
Class Method Details
.json_field_mappings ⇒ Object
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/broadcast_info.rb', line 55
def self.json_field_mappings
{
app_id: 'app_id',
call_cid: 'call_cid',
call_session_id: 'call_session_id',
call_type: 'call_type',
duration_min: 'duration_min',
ended_at: 'ended_at',
started_at: 'started_at',
creators: 'creators',
source_mode: 'source_mode'
}
end
|