Class: GetStream::Generated::Models::PoorTail
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::PoorTail
show all
- Defined in:
- lib/getstream_ruby/generated/models/poor_tail.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 = {}) ⇒ PoorTail
Initialize with attributes
32
33
34
35
36
37
38
39
40
|
# File 'lib/getstream_ruby/generated/models/poor_tail.rb', line 32
def initialize(attributes = {})
super(attributes)
@healthy_viewers = attributes.fetch(:healthy_viewers) { attributes.fetch('healthy_viewers', nil) }
@note = attributes.fetch(:note) { attributes.fetch('note', nil) }
@poor_total = attributes.fetch(:poor_total) { attributes.fetch('poor_total', nil) }
@poor_by_cause = attributes.fetch(:poor_by_cause) { attributes.fetch('poor_by_cause', nil) }
@supporting = attributes.fetch(:supporting) { attributes.fetch('supporting', nil) }
@healthy_pct = attributes.fetch(:healthy_pct) { attributes.fetch('healthy_pct', nil) }
end
|
Instance Attribute Details
#healthy_pct ⇒ Float
29
30
31
|
# File 'lib/getstream_ruby/generated/models/poor_tail.rb', line 29
def healthy_pct
@healthy_pct
end
|
#healthy_viewers ⇒ Integer
14
15
16
|
# File 'lib/getstream_ruby/generated/models/poor_tail.rb', line 14
def healthy_viewers
@healthy_viewers
end
|
#note ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/poor_tail.rb', line 17
def note
@note
end
|
23
24
25
|
# File 'lib/getstream_ruby/generated/models/poor_tail.rb', line 23
def poor_by_cause
@poor_by_cause
end
|
#poor_total ⇒ Integer
20
21
22
|
# File 'lib/getstream_ruby/generated/models/poor_tail.rb', line 20
def poor_total
@poor_total
end
|
26
27
28
|
# File 'lib/getstream_ruby/generated/models/poor_tail.rb', line 26
def supporting
@supporting
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
43
44
45
46
47
48
49
50
51
52
|
# File 'lib/getstream_ruby/generated/models/poor_tail.rb', line 43
def self.json_field_mappings
{
healthy_viewers: 'healthy_viewers',
note: 'note',
poor_total: 'poor_total',
poor_by_cause: 'poor_by_cause',
supporting: 'supporting',
healthy_pct: 'healthy_pct'
}
end
|