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.



784
785
786
787
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 784

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

Instance Method Details

#headersObject



793
794
795
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 793

def headers
    @headers
end

#participantObject



789
790
791
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 789

def participant
    @participant_instance
end

#status_codeObject



797
798
799
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 797

def status_code
    @status_code
end

#to_sObject



801
802
803
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 801

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