Class: Twilio::REST::Video::V1::RoomContext::ParticipantInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/video/v1/room/participant.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, participant_instance, headers, status_code) ⇒ ParticipantInstanceMetadata

Initializes a new ParticipantInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}ParticipantInstance]

    participant_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



398
399
400
401
# File 'lib/twilio-ruby/rest/video/v1/room/participant.rb', line 398

def initialize(version, participant_instance, headers, status_code)
    super(version, headers, status_code)
    @participant_instance = participant_instance
end

Instance Method Details

#headersObject



407
408
409
# File 'lib/twilio-ruby/rest/video/v1/room/participant.rb', line 407

def headers
    @headers
end

#participantObject



403
404
405
# File 'lib/twilio-ruby/rest/video/v1/room/participant.rb', line 403

def participant
    @participant_instance
end

#status_codeObject



411
412
413
# File 'lib/twilio-ruby/rest/video/v1/room/participant.rb', line 411

def status_code
    @status_code
end

#to_sObject



415
416
417
# File 'lib/twilio-ruby/rest/video/v1/room/participant.rb', line 415

def to_s
  "<Twilio.Api.V2010.ParticipantInstanceMetadata status=#{@status_code}>"
end