Class: GetStream::Generated::Models::PoorTail

Inherits:
BaseModel
  • Object
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[:healthy_viewers] || attributes['healthy_viewers']
  @note = attributes[:note] || attributes['note']
  @poor_total = attributes[:poor_total] || attributes['poor_total']
  @poor_by_cause = attributes[:poor_by_cause] || attributes['poor_by_cause']
  @supporting = attributes[:supporting] || attributes['supporting']
  @healthy_pct = attributes[:healthy_pct] || attributes['healthy_pct'] || nil
end

Instance Attribute Details

#healthy_pctFloat

Returns:

  • (Float)


29
30
31
# File 'lib/getstream_ruby/generated/models/poor_tail.rb', line 29

def healthy_pct
  @healthy_pct
end

#healthy_viewersInteger

Returns:

  • (Integer)


14
15
16
# File 'lib/getstream_ruby/generated/models/poor_tail.rb', line 14

def healthy_viewers
  @healthy_viewers
end

#noteString

Returns:

  • (String)


17
18
19
# File 'lib/getstream_ruby/generated/models/poor_tail.rb', line 17

def note
  @note
end

#poor_by_causePoorByCause

Returns:



23
24
25
# File 'lib/getstream_ruby/generated/models/poor_tail.rb', line 23

def poor_by_cause
  @poor_by_cause
end

#poor_totalInteger

Returns:

  • (Integer)


20
21
22
# File 'lib/getstream_ruby/generated/models/poor_tail.rb', line 20

def poor_total
  @poor_total
end

#supportingSupporting

Returns:



26
27
28
# File 'lib/getstream_ruby/generated/models/poor_tail.rb', line 26

def supporting
  @supporting
end

Class Method Details

.json_field_mappingsObject

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