Class: GetStream::Generated::Models::BroadcastDailyRollup

Inherits:
BaseModel
  • Object
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(attributes = {}) ⇒ BroadcastDailyRollup

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

#broadcastsInteger

Returns:

  • (Integer)


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

def broadcasts
  @broadcasts
end

#dayString

Returns:

  • (String)


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

def day
  @day
end

#dead_air_sInteger

Returns:

  • (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_watchedFloat

Returns:

  • (Float)


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

def hours_watched
  @hours_watched
end

#incident_windowsInteger

Returns:

  • (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_viewersInteger

Returns:

  • (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

#noteString

Returns:

  • (String)


32
33
34
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 32

def note
  @note
end

#poor_viewers_by_causePoorByCause

Returns:



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_versionString

Returns:

  • (String)


35
36
37
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 35

def schema_version
  @schema_version
end

#source_dropsInteger

Returns:

  • (Integer)


38
39
40
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 38

def source_drops
  @source_drops
end

#top_broadcastsArray<TopBroadcast>

Returns:



44
45
46
# File 'lib/getstream_ruby/generated/models/broadcast_daily_rollup.rb', line 44

def top_broadcasts
  @top_broadcasts
end

#unique_viewers_sumInteger

Returns:

  • (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_mappingsObject

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