Class: GetStream::Generated::Models::QueryCallStatsMapResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::QueryCallStatsMapResponse
- Defined in:
- lib/getstream_ruby/generated/models/query_call_stats_map_response.rb
Overview
Basic response information
Instance Attribute Summary collapse
- #call_ended_at ⇒ DateTime
- #call_id ⇒ String
- #call_session_id ⇒ String
- #call_started_at ⇒ DateTime
- #call_type ⇒ String
- #counts ⇒ CallStatsParticipantCounts
- #data_source ⇒ String
-
#duration ⇒ String
Duration of the request in milliseconds.
- #end_time ⇒ DateTime
- #generated_at ⇒ DateTime
- #publishers ⇒ CallStatsMapPublishers
- #sfus ⇒ CallStatsMapSFUs
- #start_time ⇒ DateTime
- #subscribers ⇒ CallStatsMapSubscribers
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ QueryCallStatsMapResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ QueryCallStatsMapResponse
Initialize with attributes
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 56 def initialize(attributes = {}) super(attributes) @call_id = attributes[:call_id] || attributes['call_id'] @call_session_id = attributes[:call_session_id] || attributes['call_session_id'] @call_type = attributes[:call_type] || attributes['call_type'] @duration = attributes[:duration] || attributes['duration'] @counts = attributes[:counts] || attributes['counts'] @call_ended_at = attributes[:call_ended_at] || attributes['call_ended_at'] || nil @call_started_at = attributes[:call_started_at] || attributes['call_started_at'] || nil @data_source = attributes[:data_source] || attributes['data_source'] || nil @end_time = attributes[:end_time] || attributes['end_time'] || nil @generated_at = attributes[:generated_at] || attributes['generated_at'] || nil @start_time = attributes[:start_time] || attributes['start_time'] || nil @publishers = attributes[:publishers] || attributes['publishers'] || nil @sfus = attributes[:sfus] || attributes['sfus'] || nil @subscribers = attributes[:subscribers] || attributes['subscribers'] || nil end |
Instance Attribute Details
#call_ended_at ⇒ DateTime
29 30 31 |
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 29 def call_ended_at @call_ended_at end |
#call_id ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 14 def call_id @call_id end |
#call_session_id ⇒ String
17 18 19 |
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 17 def call_session_id @call_session_id end |
#call_started_at ⇒ DateTime
32 33 34 |
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 32 def call_started_at @call_started_at end |
#call_type ⇒ String
20 21 22 |
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 20 def call_type @call_type end |
#counts ⇒ CallStatsParticipantCounts
26 27 28 |
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 26 def counts @counts end |
#data_source ⇒ String
35 36 37 |
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 35 def data_source @data_source end |
#duration ⇒ String
Returns Duration of the request in milliseconds.
23 24 25 |
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 23 def duration @duration end |
#end_time ⇒ DateTime
38 39 40 |
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 38 def end_time @end_time end |
#generated_at ⇒ DateTime
41 42 43 |
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 41 def generated_at @generated_at end |
#publishers ⇒ CallStatsMapPublishers
47 48 49 |
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 47 def publishers @publishers end |
#sfus ⇒ CallStatsMapSFUs
50 51 52 |
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 50 def sfus @sfus end |
#start_time ⇒ DateTime
44 45 46 |
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 44 def start_time @start_time end |
#subscribers ⇒ CallStatsMapSubscribers
53 54 55 |
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 53 def subscribers @subscribers end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/getstream_ruby/generated/models/query_call_stats_map_response.rb', line 75 def self.json_field_mappings { call_id: 'call_id', call_session_id: 'call_session_id', call_type: 'call_type', duration: 'duration', counts: 'counts', call_ended_at: 'call_ended_at', call_started_at: 'call_started_at', data_source: 'data_source', end_time: 'end_time', generated_at: 'generated_at', start_time: 'start_time', publishers: 'publishers', sfus: 'sfus', subscribers: 'subscribers' } end |