Class: Twilio::REST::Chat::V2::ServiceContext::ChannelContext::MessageInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/chat/v2/service/channel/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.



488
489
490
491
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/message.rb', line 488

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

Instance Method Details

#headersObject



497
498
499
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/message.rb', line 497

def headers
    @headers
end

#messageObject



493
494
495
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/message.rb', line 493

def message
    @message_instance
end

#status_codeObject



501
502
503
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/message.rb', line 501

def status_code
    @status_code
end

#to_sObject



505
506
507
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/message.rb', line 505

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