Class: GetStream::Generated::Models::BroadcastDailyRollup
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::BroadcastDailyRollup
show all
- Defined in:
- lib/getstream_ruby/generated/models/broadcast_daily_rollup.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 50
def initialize(attributes = {})
super(attributes)
@broadcasts = attributes[:broadcasts] || attributes['broadcasts']
@day = attributes[:day] || attributes['day']
@dead_air_s = attributes[:dead_air_s] || attributes['dead_air_s']
@hours_watched = attributes[:hours_watched] || attributes['hours_watched']
@incident_windows = attributes[:incident_windows] || attributes['incident_windows']
@max_peak_concurrent_viewers = attributes[:max_peak_concurrent_viewers] || attributes['max_peak_concurrent_viewers']
@note = attributes[:note] || attributes['note']
@schema_version = attributes[:schema_version] || attributes['schema_version']
@source_drops = attributes[:source_drops] || attributes['source_drops']
@unique_viewers_sum = attributes[:unique_viewers_sum] || attributes['unique_viewers_sum']
@top_broadcasts = attributes[:top_broadcasts] || attributes['top_broadcasts']
@poor_viewers_by_cause = attributes[:poor_viewers_by_cause] || attributes['poor_viewers_by_cause']
end
|
Instance Attribute Details
#broadcasts ⇒ Integer
14
15
16
|
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 14
def broadcasts
@broadcasts
end
|
#day ⇒ String
17
18
19
|
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 17
def day
@day
end
|
#dead_air_s ⇒ Integer
20
21
22
|
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 20
def dead_air_s
@dead_air_s
end
|
#hours_watched ⇒ Float
23
24
25
|
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 23
def hours_watched
@hours_watched
end
|
#incident_windows ⇒ Integer
26
27
28
|
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 26
def incident_windows
@incident_windows
end
|
#max_peak_concurrent_viewers ⇒ Integer
29
30
31
|
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 29
def max_peak_concurrent_viewers
@max_peak_concurrent_viewers
end
|
#note ⇒ String
32
33
34
|
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 32
def note
@note
end
|
#poor_viewers_by_cause ⇒ PoorByCause
47
48
49
|
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 47
def poor_viewers_by_cause
@poor_viewers_by_cause
end
|
#schema_version ⇒ String
35
36
37
|
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 35
def schema_version
@schema_version
end
|
#source_drops ⇒ Integer
38
39
40
|
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 38
def source_drops
@source_drops
end
|
#top_broadcasts ⇒ Array<TopBroadcast>
44
45
46
|
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 44
def top_broadcasts
@top_broadcasts
end
|
#unique_viewers_sum ⇒ Integer
41
42
43
|
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 41
def unique_viewers_sum
@unique_viewers_sum
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 67
def self.json_field_mappings
{
broadcasts: 'broadcasts',
day: 'day',
dead_air_s: 'dead_air_s',
hours_watched: 'hours_watched',
incident_windows: 'incident_windows',
max_peak_concurrent_viewers: 'max_peak_concurrent_viewers',
note: 'note',
schema_version: 'schema_version',
source_drops: 'source_drops',
unique_viewers_sum: 'unique_viewers_sum',
top_broadcasts: 'top_broadcasts',
poor_viewers_by_cause: 'poor_viewers_by_cause'
}
end
|