Class: GetStream::Generated::Models::ParticipantSeriesSubscriberStats
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ParticipantSeriesSubscriberStats
show all
- Defined in:
- lib/getstream_ruby/generated/models/participant_series_subscriber_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 with attributes
29
30
31
32
33
34
35
36
|
# File 'lib/getstream_ruby/generated/models/participant_series_subscriber_stats.rb', line 29
def initialize(attributes = {})
super(attributes)
@global_metrics_order = attributes[:global_metrics_order] || attributes['global_metrics_order'] || nil
@subscriptions = attributes[:subscriptions] || attributes['subscriptions'] || 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
end
|
Instance Attribute Details
#global ⇒ Hash<String, Array<Array<Float>>>
20
21
22
|
# File 'lib/getstream_ruby/generated/models/participant_series_subscriber_stats.rb', line 20
def global
@global
end
|
23
24
25
|
# File 'lib/getstream_ruby/generated/models/participant_series_subscriber_stats.rb', line 23
def global_meta
@global_meta
end
|
#global_metrics_order ⇒ Array<String>
14
15
16
|
# File 'lib/getstream_ruby/generated/models/participant_series_subscriber_stats.rb', line 14
def global_metrics_order
@global_metrics_order
end
|
#global_thresholds ⇒ Hash<String, Array<MetricThreshold>>
26
27
28
|
# File 'lib/getstream_ruby/generated/models/participant_series_subscriber_stats.rb', line 26
def global_thresholds
@global_thresholds
end
|
17
18
19
|
# File 'lib/getstream_ruby/generated/models/participant_series_subscriber_stats.rb', line 17
def subscriptions
@subscriptions
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
39
40
41
42
43
44
45
46
47
|
# File 'lib/getstream_ruby/generated/models/participant_series_subscriber_stats.rb', line 39
def self.json_field_mappings
{
global_metrics_order: 'global_metrics_order',
subscriptions: 'subscriptions',
global: 'global',
global_meta: 'global_meta',
global_thresholds: 'global_thresholds'
}
end
|