Class: GetStream::Generated::Models::PredefinedFilterStatsResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::PredefinedFilterStatsResponse
- Defined in:
- lib/getstream_ruby/generated/models/predefined_filter_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 = {}) ⇒ PredefinedFilterStatsResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ PredefinedFilterStatsResponse
Initialize with attributes
23 24 25 26 27 28 |
# File 'lib/getstream_ruby/generated/models/predefined_filter_stats_response.rb', line 23 def initialize(attributes = {}) super(attributes) @calls = attributes[:calls] || attributes['calls'] @max_latency_ms = attributes[:max_latency_ms] || attributes['max_latency_ms'] @last_seen = attributes[:last_seen] || attributes['last_seen'] || nil end |
Instance Attribute Details
#calls ⇒ Integer
14 15 16 |
# File 'lib/getstream_ruby/generated/models/predefined_filter_stats_response.rb', line 14 def calls @calls end |
#last_seen ⇒ DateTime
20 21 22 |
# File 'lib/getstream_ruby/generated/models/predefined_filter_stats_response.rb', line 20 def last_seen @last_seen end |
#max_latency_ms ⇒ Integer
17 18 19 |
# File 'lib/getstream_ruby/generated/models/predefined_filter_stats_response.rb', line 17 def max_latency_ms @max_latency_ms end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
31 32 33 34 35 36 37 |
# File 'lib/getstream_ruby/generated/models/predefined_filter_stats_response.rb', line 31 def self.json_field_mappings { calls: 'calls', max_latency_ms: 'max_latency_ms', last_seen: 'last_seen' } end |