Class: GetStream::Generated::Models::ParticipantSeriesPublisherStats

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/participant_series_publisher_stats.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 = {}) ⇒ ParticipantSeriesPublisherStats

Initialize with attributes



29
30
31
32
33
34
35
36
# File 'lib/getstream_ruby/generated/models/participant_series_publisher_stats.rb', line 29

def initialize(attributes = {})
  super(attributes)
  @global_metrics_order = attributes[:global_metrics_order] || attributes['global_metrics_order'] || nil
  @global = attributes[:global] || attributes['global'] || nil
  @global_meta = attributes[:global_meta] || attributes['global_meta'] || nil
  @global_thresholds = attributes[:global_thresholds] || attributes['global_thresholds'] || nil
  @tracks = attributes[:tracks] || attributes['tracks'] || nil
end

Instance Attribute Details

#globalHash<String, Array<Array<Float>>>

Returns:

  • (Hash<String, Array<Array<Float>>>)


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

def global
  @global
end

#global_metaHash<String, MetricDescriptor>

Returns:



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

def global_meta
  @global_meta
end

#global_metrics_orderArray<String>

Returns:

  • (Array<String>)


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

def global_metrics_order
  @global_metrics_order
end

#global_thresholdsHash<String, Array<MetricThreshold>>

Returns:



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

def global_thresholds
  @global_thresholds
end

#tracksHash<String, Array<ParticipantSeriesTrackMetrics>>

Returns:



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

def tracks
  @tracks
end

Class Method Details

.json_field_mappingsObject

Override field mappings for JSON serialization



39
40
41
42
43
44
45
46
47
# File 'lib/getstream_ruby/generated/models/participant_series_publisher_stats.rb', line 39

def self.json_field_mappings
  {
    global_metrics_order: 'global_metrics_order',
    global: 'global',
    global_meta: 'global_meta',
    global_thresholds: 'global_thresholds',
    tracks: 'tracks'
  }
end