Class: Twilio::REST::Api::V2010::AccountContext::MessageInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/api/v2010/account/message.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, message_instance, headers, status_code) ⇒ MessageInstanceMetadata

Initializes a new MessageInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}MessageInstance] —

    message_instance The instance associated with the metadata.

  • headers (Hash) —

    Header object with response headers.

  • status_code (Integer) —

    The HTTP status code of the response.



628
629
630
631
# File 'lib/twilio-ruby/rest/api/v2010/account/message.rb', line 628

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

Instance Method Details

#headers ⇒ Object



637
638
639
# File 'lib/twilio-ruby/rest/api/v2010/account/message.rb', line 637

def headers
    @headers
end

#message ⇒ Object



633
634
635
# File 'lib/twilio-ruby/rest/api/v2010/account/message.rb', line 633

def message
    @message_instance
end

#status_code ⇒ Object



641
642
643
# File 'lib/twilio-ruby/rest/api/v2010/account/message.rb', line 641

def status_code
    @status_code
end

#to_s ⇒ Object



645
646
647
# File 'lib/twilio-ruby/rest/api/v2010/account/message.rb', line 645

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