Class: Twilio::REST::Insights::V2::InboundInstanceMetadata

Inherits:
Twilio::REST::InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/insights/v2/inbound.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, inbound_instance, headers, status_code) ⇒ InboundInstanceMetadata

Initializes a new InboundInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}InboundInstance]

    inbound_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



309
310
311
312
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 309

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

Instance Method Details

#headersObject



318
319
320
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 318

def headers
    @headers
end

#inboundObject



314
315
316
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 314

def inbound
    @inbound_instance
end

#status_codeObject



322
323
324
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 322

def status_code
    @status_code
end

#to_sObject



326
327
328
# File 'lib/twilio-ruby/rest/insights/v2/inbound.rb', line 326

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