Class: GetStream::Generated::Models::ParticipantReportResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ParticipantReportResponse
show all
- Defined in:
- lib/getstream_ruby/generated/models/participant_report_response.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
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# File 'lib/getstream_ruby/generated/models/participant_report_response.rb', line 44
def initialize(attributes = {})
super(attributes)
@sum = attributes.fetch(:sum) { attributes.fetch('sum', nil) }
@unique = attributes.fetch(:unique) { attributes.fetch('unique', nil) }
@max_concurrent = attributes.fetch(:max_concurrent) { attributes.fetch('max_concurrent', nil) }
@by_browser = attributes.fetch(:by_browser) { attributes.fetch('by_browser', nil) }
@by_country = attributes.fetch(:by_country) { attributes.fetch('by_country', nil) }
@by_device = attributes.fetch(:by_device) { attributes.fetch('by_device', nil) }
@by_operating_system = attributes.fetch(:by_operating_system) { attributes.fetch('by_operating_system', nil) }
@count_over_time = attributes.fetch(:count_over_time) { attributes.fetch('count_over_time', nil) }
@publishers = attributes.fetch(:publishers) { attributes.fetch('publishers', nil) }
@subscribers = attributes.fetch(:subscribers) { attributes.fetch('subscribers', nil) }
end
|
Instance Attribute Details
23
24
25
|
# File 'lib/getstream_ruby/generated/models/participant_report_response.rb', line 23
def by_browser
@by_browser
end
|
26
27
28
|
# File 'lib/getstream_ruby/generated/models/participant_report_response.rb', line 26
def by_country
@by_country
end
|
29
30
31
|
# File 'lib/getstream_ruby/generated/models/participant_report_response.rb', line 29
def by_device
@by_device
end
|
32
33
34
|
# File 'lib/getstream_ruby/generated/models/participant_report_response.rb', line 32
def by_operating_system
@by_operating_system
end
|
35
36
37
|
# File 'lib/getstream_ruby/generated/models/participant_report_response.rb', line 35
def count_over_time
@count_over_time
end
|
#max_concurrent ⇒ Integer
20
21
22
|
# File 'lib/getstream_ruby/generated/models/participant_report_response.rb', line 20
def max_concurrent
@max_concurrent
end
|
38
39
40
|
# File 'lib/getstream_ruby/generated/models/participant_report_response.rb', line 38
def publishers
@publishers
end
|
41
42
43
|
# File 'lib/getstream_ruby/generated/models/participant_report_response.rb', line 41
def subscribers
@subscribers
end
|
#sum ⇒ Integer
14
15
16
|
# File 'lib/getstream_ruby/generated/models/participant_report_response.rb', line 14
def sum
@sum
end
|
#unique ⇒ Integer
17
18
19
|
# File 'lib/getstream_ruby/generated/models/participant_report_response.rb', line 17
def unique
@unique
end
|
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# File 'lib/getstream_ruby/generated/models/participant_report_response.rb', line 59
def self.json_field_mappings
{
sum: 'sum',
unique: 'unique',
max_concurrent: 'max_concurrent',
by_browser: 'by_browser',
by_country: 'by_country',
by_device: 'by_device',
by_operating_system: 'by_operating_system',
count_over_time: 'count_over_time',
publishers: 'publishers',
subscribers: 'subscribers'
}
end
|