Class: GetStream::Generated::Models::ParticipantReportResponse

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

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[:sum] || attributes['sum']
  @unique = attributes[:unique] || attributes['unique']
  @max_concurrent = attributes[:max_concurrent] || attributes['max_concurrent'] || nil
  @by_browser = attributes[:by_browser] || attributes['by_browser'] || nil
  @by_country = attributes[:by_country] || attributes['by_country'] || nil
  @by_device = attributes[:by_device] || attributes['by_device'] || nil
  @by_operating_system = attributes[:by_operating_system] || attributes['by_operating_system'] || nil
  @count_over_time = attributes[:count_over_time] || attributes['count_over_time'] || nil
  @publishers = attributes[:publishers] || attributes['publishers'] || nil
  @subscribers = attributes[:subscribers] || attributes['subscribers'] || nil
end

Instance Attribute Details

#by_browserArray<GroupedStatsResponse>



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

def by_browser
  @by_browser
end

#by_countryArray<GroupedStatsResponse>



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

def by_country
  @by_country
end

#by_deviceArray<GroupedStatsResponse>



29
30
31
# File 'lib/getstream_ruby/generated/models/participant_report_response.rb', line 29

def by_device
  @by_device
end

#by_operating_systemArray<GroupedStatsResponse>



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

def by_operating_system
  @by_operating_system
end

#count_over_timeParticipantCountOverTimeResponse



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

def count_over_time
  @count_over_time
end

#max_concurrentInteger



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

def max_concurrent
  @max_concurrent
end

#publishersPublisherStatsResponse



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

def publishers
  @publishers
end

#subscribersSubscriberStatsResponse



41
42
43
# File 'lib/getstream_ruby/generated/models/participant_report_response.rb', line 41

def subscribers
  @subscribers
end

#sumInteger



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

def sum
  @sum
end

#uniqueInteger



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

def unique
  @unique
end

Class Method Details

.json_field_mappingsObject

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