Class: GetStream::Generated::Models::CallSessionResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::CallSessionResponse
show all
- Defined in:
- lib/getstream_ruby/generated/models/call_session_response.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# File 'lib/getstream_ruby/generated/models/call_session_response.rb', line 50
def initialize(attributes = {})
super(attributes)
@anonymous_participant_count = attributes[:anonymous_participant_count] || attributes['anonymous_participant_count']
@id = attributes[:id] || attributes['id']
@participants = attributes[:participants] || attributes['participants']
@accepted_by = attributes[:accepted_by] || attributes['accepted_by']
@missed_by = attributes[:missed_by] || attributes['missed_by']
@participants_count_by_role = attributes[:participants_count_by_role] || attributes['participants_count_by_role']
@rejected_by = attributes[:rejected_by] || attributes['rejected_by']
@ended_at = attributes[:ended_at] || attributes['ended_at'] || nil
@live_ended_at = attributes[:live_ended_at] || attributes['live_ended_at'] || nil
@live_started_at = attributes[:live_started_at] || attributes['live_started_at'] || nil
@started_at = attributes[:started_at] || attributes['started_at'] || nil
@timer_ends_at = attributes[:timer_ends_at] || attributes['timer_ends_at'] || nil
end
|
Instance Attribute Details
#accepted_by ⇒ Hash<String, DateTime>
23
24
25
|
# File 'lib/getstream_ruby/generated/models/call_session_response.rb', line 23
def accepted_by
@accepted_by
end
|
#anonymous_participant_count ⇒ Integer
14
15
16
|
# File 'lib/getstream_ruby/generated/models/call_session_response.rb', line 14
def anonymous_participant_count
@anonymous_participant_count
end
|
#ended_at ⇒ DateTime
35
36
37
|
# File 'lib/getstream_ruby/generated/models/call_session_response.rb', line 35
def ended_at
@ended_at
end
|
#id ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/call_session_response.rb', line 17
def id
@id
end
|
#live_ended_at ⇒ DateTime
38
39
40
|
# File 'lib/getstream_ruby/generated/models/call_session_response.rb', line 38
def live_ended_at
@live_ended_at
end
|
#live_started_at ⇒ DateTime
41
42
43
|
# File 'lib/getstream_ruby/generated/models/call_session_response.rb', line 41
def live_started_at
@live_started_at
end
|
#missed_by ⇒ Hash<String, DateTime>
26
27
28
|
# File 'lib/getstream_ruby/generated/models/call_session_response.rb', line 26
def missed_by
@missed_by
end
|
20
21
22
|
# File 'lib/getstream_ruby/generated/models/call_session_response.rb', line 20
def participants
@participants
end
|
#participants_count_by_role ⇒ Hash<String, Integer>
29
30
31
|
# File 'lib/getstream_ruby/generated/models/call_session_response.rb', line 29
def participants_count_by_role
@participants_count_by_role
end
|
#rejected_by ⇒ Hash<String, DateTime>
32
33
34
|
# File 'lib/getstream_ruby/generated/models/call_session_response.rb', line 32
def rejected_by
@rejected_by
end
|
#started_at ⇒ DateTime
44
45
46
|
# File 'lib/getstream_ruby/generated/models/call_session_response.rb', line 44
def started_at
@started_at
end
|
#timer_ends_at ⇒ DateTime
47
48
49
|
# File 'lib/getstream_ruby/generated/models/call_session_response.rb', line 47
def timer_ends_at
@timer_ends_at
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# File 'lib/getstream_ruby/generated/models/call_session_response.rb', line 67
def self.json_field_mappings
{
anonymous_participant_count: 'anonymous_participant_count',
id: 'id',
participants: 'participants',
accepted_by: 'accepted_by',
missed_by: 'missed_by',
participants_count_by_role: 'participants_count_by_role',
rejected_by: 'rejected_by',
ended_at: 'ended_at',
live_ended_at: 'live_ended_at',
live_started_at: 'live_started_at',
started_at: 'started_at',
timer_ends_at: 'timer_ends_at'
}
end
|