Class: Twilio::REST::Api::V2010::AccountContext::ConferenceContext::ParticipantInstanceMetadata

Inherits:
InstanceResourceMetadata
  • Object
show all
Defined in:
lib/twilio-ruby/rest/api/v2010/account/conference/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.



852
853
854
855
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 852

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

Instance Method Details

#headersObject



861
862
863
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 861

def headers
    @headers
end

#participantObject



857
858
859
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 857

def participant
    @participant_instance
end

#status_codeObject



865
866
867
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 865

def status_code
    @status_code
end

#to_sObject



869
870
871
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 869

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