Class: GetStream::Generated::Models::QueryCallParticipantsResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/getstream_ruby/generated/models/query_call_participants_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 = {}) ⇒ 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

#callCallResponse

Returns:



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

def call
  @call
end

#durationString

Returns:

  • (String)


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

def duration
  @duration
end

#membersArray<MemberResponse>

Returns:



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

def members
  @members
end

#own_capabilitiesArray<OwnCapability>

Returns:



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

def own_capabilities
  @own_capabilities
end

#participantsArray<CallParticipantResponse>

Returns List of call participants.

Returns:



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

def participants
  @participants
end

#total_participantsInteger

Returns:

  • (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_mappingsObject

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