Class: Twilio::REST::Conversations::V1::ServiceContext::ConversationContext::WebhookInstanceMetadata

Inherits:
InstanceResourceMetadata
  • Object
show all
Defined in:
lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, webhook_instance, headers, status_code) ⇒ WebhookInstanceMetadata

Initializes a new WebhookInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}WebhookInstance]

    webhook_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



460
461
462
463
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb', line 460

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

Instance Method Details

#headersObject



469
470
471
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb', line 469

def headers
    @headers
end

#status_codeObject



473
474
475
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb', line 473

def status_code
    @status_code
end

#to_sObject



477
478
479
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb', line 477

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

#webhookObject



465
466
467
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb', line 465

def webhook
    @webhook_instance
end