Class: GetStream::Generated::Models::ChatActivityStatsResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::ChatActivityStatsResponse
- Defined in:
- lib/getstream_ruby/generated/models/chat_activity_stats_response.rb
Instance Attribute Summary collapse
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ChatActivityStatsResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ ChatActivityStatsResponse
Initialize with attributes
17 18 19 20 |
# File 'lib/getstream_ruby/generated/models/chat_activity_stats_response.rb', line 17 def initialize(attributes = {}) super(attributes) @Messages = attributes[:Messages] || attributes['Messages'] || nil end |
Instance Attribute Details
#Messages ⇒ MessageStatsResponse
14 15 16 |
# File 'lib/getstream_ruby/generated/models/chat_activity_stats_response.rb', line 14 def Messages @Messages end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
23 24 25 26 27 |
# File 'lib/getstream_ruby/generated/models/chat_activity_stats_response.rb', line 23 def self.json_field_mappings { Messages: 'Messages' } end |