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.



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

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

Instance Method Details

#headersObject



807
808
809
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 807

def headers
    @headers
end

#participantObject



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

def participant
    @participant_instance
end

#status_codeObject



811
812
813
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 811

def status_code
    @status_code
end

#to_sObject



815
816
817
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 815

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