Class: GetStream::Generated::Models::ParticipantSeriesUserStats
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ParticipantSeriesUserStats
show all
- Defined in:
- lib/getstream_ruby/generated/models/participant_series_user_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
26
27
28
29
30
31
32
|
# File 'lib/getstream_ruby/generated/models/participant_series_user_stats.rb', line 26
def initialize(attributes = {})
super(attributes)
@metrics_order = attributes.fetch(:metrics_order) { attributes.fetch('metrics_order', nil) }
@metrics = attributes.fetch(:metrics) { attributes.fetch('metrics', nil) }
@metrics_meta = attributes.fetch(:metrics_meta) { attributes.fetch('metrics_meta', nil) }
@thresholds = attributes.fetch(:thresholds) { attributes.fetch('thresholds', nil) }
end
|
Instance Attribute Details
#metrics ⇒ Hash<String, Array<Array<Float>>>
17
18
19
|
# File 'lib/getstream_ruby/generated/models/participant_series_user_stats.rb', line 17
def metrics
@metrics
end
|
20
21
22
|
# File 'lib/getstream_ruby/generated/models/participant_series_user_stats.rb', line 20
def metrics_meta
@metrics_meta
end
|
#metrics_order ⇒ Array<String>
14
15
16
|
# File 'lib/getstream_ruby/generated/models/participant_series_user_stats.rb', line 14
def metrics_order
@metrics_order
end
|
#thresholds ⇒ Hash<String, Array<MetricThreshold>>
23
24
25
|
# File 'lib/getstream_ruby/generated/models/participant_series_user_stats.rb', line 23
def thresholds
@thresholds
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
35
36
37
38
39
40
41
42
|
# File 'lib/getstream_ruby/generated/models/participant_series_user_stats.rb', line 35
def self.json_field_mappings
{
metrics_order: 'metrics_order',
metrics: 'metrics',
metrics_meta: 'metrics_meta',
thresholds: 'thresholds'
}
end
|