Class: GetStream::Generated::Models::QueryCallParticipantsResponse
- Inherits:
-
BaseModel
- Object
- BaseModel
- GetStream::Generated::Models::QueryCallParticipantsResponse
- Defined in:
- lib/getstream_ruby/generated/models/query_call_participants_response.rb
Instance Attribute Summary collapse
-
#call ⇒ CallResponse
Represents a call.
- #duration ⇒ String
- #members ⇒ Array<MemberResponse>
- #own_capabilities ⇒ Array<OwnCapability>
-
#participants ⇒ Array<CallParticipantResponse>
List of call participants.
- #total_participants ⇒ Integer
Class Method Summary collapse
-
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ QueryCallParticipantsResponse
constructor
Initialize with attributes.
Methods inherited from BaseModel
#==, #inspect, omit_empty_fields, #to_h, #to_json
Constructor Details
#initialize(attributes = {}) ⇒ QueryCallParticipantsResponse
Initialize with attributes
32 33 34 35 36 37 38 39 40 |
# File 'lib/getstream_ruby/generated/models/query_call_participants_response.rb', line 32 def initialize(attributes = {}) super(attributes) @duration = attributes[:duration] || attributes['duration'] @total_participants = attributes[:total_participants] || attributes['total_participants'] @members = attributes[:members] || attributes['members'] @own_capabilities = attributes[:own_capabilities] || attributes['own_capabilities'] @participants = attributes[:participants] || attributes['participants'] @call = attributes[:call] || attributes['call'] end |
Instance Attribute Details
#call ⇒ CallResponse
Returns Represents a call.
29 30 31 |
# File 'lib/getstream_ruby/generated/models/query_call_participants_response.rb', line 29 def call @call end |
#duration ⇒ String
14 15 16 |
# File 'lib/getstream_ruby/generated/models/query_call_participants_response.rb', line 14 def duration @duration end |
#members ⇒ Array<MemberResponse>
20 21 22 |
# File 'lib/getstream_ruby/generated/models/query_call_participants_response.rb', line 20 def members @members end |
#own_capabilities ⇒ Array<OwnCapability>
23 24 25 |
# File 'lib/getstream_ruby/generated/models/query_call_participants_response.rb', line 23 def own_capabilities @own_capabilities end |
#participants ⇒ Array<CallParticipantResponse>
Returns List of call participants.
26 27 28 |
# File 'lib/getstream_ruby/generated/models/query_call_participants_response.rb', line 26 def participants @participants end |
#total_participants ⇒ Integer
17 18 19 |
# File 'lib/getstream_ruby/generated/models/query_call_participants_response.rb', line 17 def total_participants @total_participants end |
Class Method Details
.json_field_mappings ⇒ Object
Override field mappings for JSON serialization
43 44 45 46 47 48 49 50 51 52 |
# File 'lib/getstream_ruby/generated/models/query_call_participants_response.rb', line 43 def self.json_field_mappings { duration: 'duration', total_participants: 'total_participants', members: 'members', own_capabilities: 'own_capabilities', participants: 'participants', call: 'call' } end |