Class: GetStream::Generated::Models::Audience
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::Audience
show all
- Defined in:
- lib/getstream_ruby/generated/models/audience.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 = {}) ⇒ Audience
Initialize with attributes
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# File 'lib/getstream_ruby/generated/models/audience.rb', line 47
def initialize(attributes = {})
super(attributes)
@avg_concurrent_viewers = attributes[:avg_concurrent_viewers] || attributes['avg_concurrent_viewers']
@hours_watched = attributes[:hours_watched] || attributes['hours_watched']
@peak_concurrent_viewers = attributes[:peak_concurrent_viewers] || attributes['peak_concurrent_viewers']
@unique_viewers = attributes[:unique_viewers] || attributes['unique_viewers']
@viewer_connections = attributes[:viewer_connections] || attributes['viewer_connections']
@concurrency_by_minute = attributes[:concurrency_by_minute] || attributes['concurrency_by_minute']
@peak_at = attributes[:peak_at] || attributes['peak_at'] || nil
@ramp_up_min_to_90pct_peak = attributes[:ramp_up_min_to_90pct_peak] || attributes['ramp_up_min_to_90pct_peak'] || nil
@retention_at_90pct_mark = attributes[:retention_at_90pct_mark] || attributes['retention_at_90pct_mark'] || nil
@retention_at_midpoint = attributes[:retention_at_midpoint] || attributes['retention_at_midpoint'] || nil
@shape = attributes[:shape] || attributes['shape'] || nil
end
|
Instance Attribute Details
#avg_concurrent_viewers ⇒ Integer
14
15
16
|
# File 'lib/getstream_ruby/generated/models/audience.rb', line 14
def avg_concurrent_viewers
@avg_concurrent_viewers
end
|
29
30
31
|
# File 'lib/getstream_ruby/generated/models/audience.rb', line 29
def concurrency_by_minute
@concurrency_by_minute
end
|
#hours_watched ⇒ Float
17
18
19
|
# File 'lib/getstream_ruby/generated/models/audience.rb', line 17
def hours_watched
@hours_watched
end
|
#peak_at ⇒ String
32
33
34
|
# File 'lib/getstream_ruby/generated/models/audience.rb', line 32
def peak_at
@peak_at
end
|
#peak_concurrent_viewers ⇒ Integer
20
21
22
|
# File 'lib/getstream_ruby/generated/models/audience.rb', line 20
def peak_concurrent_viewers
@peak_concurrent_viewers
end
|
#ramp_up_min_to_90pct_peak ⇒ Integer
35
36
37
|
# File 'lib/getstream_ruby/generated/models/audience.rb', line 35
def ramp_up_min_to_90pct_peak
@ramp_up_min_to_90pct_peak
end
|
#retention_at_90pct_mark ⇒ Float
38
39
40
|
# File 'lib/getstream_ruby/generated/models/audience.rb', line 38
def retention_at_90pct_mark
@retention_at_90pct_mark
end
|
#retention_at_midpoint ⇒ Float
41
42
43
|
# File 'lib/getstream_ruby/generated/models/audience.rb', line 41
def retention_at_midpoint
@retention_at_midpoint
end
|
#shape ⇒ String
44
45
46
|
# File 'lib/getstream_ruby/generated/models/audience.rb', line 44
def shape
@shape
end
|
#unique_viewers ⇒ Integer
23
24
25
|
# File 'lib/getstream_ruby/generated/models/audience.rb', line 23
def unique_viewers
@unique_viewers
end
|
#viewer_connections ⇒ Integer
26
27
28
|
# File 'lib/getstream_ruby/generated/models/audience.rb', line 26
def viewer_connections
@viewer_connections
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# File 'lib/getstream_ruby/generated/models/audience.rb', line 63
def self.json_field_mappings
{
avg_concurrent_viewers: 'avg_concurrent_viewers',
hours_watched: 'hours_watched',
peak_concurrent_viewers: 'peak_concurrent_viewers',
unique_viewers: 'unique_viewers',
viewer_connections: 'viewer_connections',
concurrency_by_minute: 'concurrency_by_minute',
peak_at: 'peak_at',
ramp_up_min_to_90pct_peak: 'ramp_up_min_to_90pct_peak',
retention_at_90pct_mark: 'retention_at_90pct_mark',
retention_at_midpoint: 'retention_at_midpoint',
shape: 'shape'
}
end
|