Class: Twilio::REST::Conversations::V1::ConversationContext::MessageInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/conversations/v1/conversation/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.



512
513
514
515
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/message.rb', line 512

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

Instance Method Details

#headersObject



521
522
523
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/message.rb', line 521

def headers
    @headers
end

#messageObject



517
518
519
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/message.rb', line 517

def message
    @message_instance
end

#status_codeObject



525
526
527
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/message.rb', line 525

def status_code
    @status_code
end

#to_sObject



529
530
531
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/message.rb', line 529

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