Class: GetStream::Generated::Models::CallStatsMapPublisher
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::CallStatsMapPublisher
show all
- Defined in:
- lib/getstream_ruby/generated/models/call_stats_map_publisher.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
35
36
37
38
39
40
41
42
43
44
|
# File 'lib/getstream_ruby/generated/models/call_stats_map_publisher.rb', line 35
def initialize(attributes = {})
super(attributes)
@is_live = attributes[:is_live] || attributes['is_live']
@user_id = attributes[:user_id] || attributes['user_id']
@user_session_id = attributes[:user_session_id] || attributes['user_session_id']
@published_tracks = attributes[:published_tracks] || attributes['published_tracks']
@name = attributes[:name] || attributes['name'] || nil
@publisher_type = attributes[:publisher_type] || attributes['publisher_type'] || nil
@location = attributes[:location] || attributes['location'] || nil
end
|
Instance Attribute Details
#is_live ⇒ Boolean
14
15
16
|
# File 'lib/getstream_ruby/generated/models/call_stats_map_publisher.rb', line 14
def is_live
@is_live
end
|
32
33
34
|
# File 'lib/getstream_ruby/generated/models/call_stats_map_publisher.rb', line 32
def location
@location
end
|
#name ⇒ String
26
27
28
|
# File 'lib/getstream_ruby/generated/models/call_stats_map_publisher.rb', line 26
def name
@name
end
|
23
24
25
|
# File 'lib/getstream_ruby/generated/models/call_stats_map_publisher.rb', line 23
def published_tracks
@published_tracks
end
|
#publisher_type ⇒ String
29
30
31
|
# File 'lib/getstream_ruby/generated/models/call_stats_map_publisher.rb', line 29
def publisher_type
@publisher_type
end
|
#user_id ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/call_stats_map_publisher.rb', line 17
def user_id
@user_id
end
|
#user_session_id ⇒ String
20
21
22
|
# File 'lib/getstream_ruby/generated/models/call_stats_map_publisher.rb', line 20
def user_session_id
@user_session_id
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
47
48
49
50
51
52
53
54
55
56
57
|
# File 'lib/getstream_ruby/generated/models/call_stats_map_publisher.rb', line 47
def self.json_field_mappings
{
is_live: 'is_live',
user_id: 'user_id',
user_session_id: 'user_session_id',
published_tracks: 'published_tracks',
name: 'name',
publisher_type: 'publisher_type',
location: 'location'
}
end
|