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

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



426
427
428
429
# File 'lib/twilio-ruby/rest/chat/v1/service/channel/message.rb', line 426

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

Instance Method Details

#headersObject



435
436
437
# File 'lib/twilio-ruby/rest/chat/v1/service/channel/message.rb', line 435

def headers
    @headers
end

#messageObject



431
432
433
# File 'lib/twilio-ruby/rest/chat/v1/service/channel/message.rb', line 431

def message
    @message_instance
end

#status_codeObject



439
440
441
# File 'lib/twilio-ruby/rest/chat/v1/service/channel/message.rb', line 439

def status_code
    @status_code
end

#to_sObject



443
444
445
# File 'lib/twilio-ruby/rest/chat/v1/service/channel/message.rb', line 443

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