Class: GetStream::Generated::Models::SourceHealth
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::SourceHealth
show all
- Defined in:
- lib/getstream_ruby/generated/models/source_health.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 = {}) ⇒ SourceHealth
Initialize with attributes
26
27
28
29
30
31
32
|
# File 'lib/getstream_ruby/generated/models/source_health.rb', line 26
def initialize(attributes = {})
super(attributes)
@co_host_peak = attributes[:co_host_peak] || attributes['co_host_peak']
@dead_air_s = attributes[:dead_air_s] || attributes['dead_air_s']
@interruptions = attributes[:interruptions] || attributes['interruptions']
@publisher_sessions = attributes[:publisher_sessions] || attributes['publisher_sessions']
end
|
Instance Attribute Details
#co_host_peak ⇒ Integer
14
15
16
|
# File 'lib/getstream_ruby/generated/models/source_health.rb', line 14
def co_host_peak
@co_host_peak
end
|
#dead_air_s ⇒ Integer
17
18
19
|
# File 'lib/getstream_ruby/generated/models/source_health.rb', line 17
def dead_air_s
@dead_air_s
end
|
20
21
22
|
# File 'lib/getstream_ruby/generated/models/source_health.rb', line 20
def interruptions
@interruptions
end
|
23
24
25
|
# File 'lib/getstream_ruby/generated/models/source_health.rb', line 23
def publisher_sessions
@publisher_sessions
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
35
36
37
38
39
40
41
42
|
# File 'lib/getstream_ruby/generated/models/source_health.rb', line 35
def self.json_field_mappings
{
co_host_peak: 'co_host_peak',
dead_air_s: 'dead_air_s',
interruptions: 'interruptions',
publisher_sessions: 'publisher_sessions'
}
end
|