Class: Twilio::REST::Voice::V1::ArchivedCallInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/voice/v1/archived_call.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, archived_call_instance, headers, status_code) ⇒ ArchivedCallInstanceMetadata

Initializes a new ArchivedCallInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}ArchivedCallInstance]

    archived_call_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



117
118
119
120
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 117

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

Instance Method Details

#archived_callObject



122
123
124
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 122

def archived_call
    @archived_call_instance
end

#headersObject



126
127
128
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 126

def headers
    @headers
end

#status_codeObject



130
131
132
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 130

def status_code
    @status_code
end

#to_sObject



134
135
136
# File 'lib/twilio-ruby/rest/voice/v1/archived_call.rb', line 134

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