Class: Twilio::REST::Verify::V2::ServiceContext::WebhookInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/verify/v2/service/webhook.rb

Instance Method Summary collapse

Constructor Details

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

Initializes a new WebhookInstanceMetadata.

Parameters:

  • Version that contains the resource

  • webhook_instance The instance associated with the metadata.

  • Header object with response headers.

  • The HTTP status code of the response.



440
441
442
443
# File 'lib/twilio-ruby/rest/verify/v2/service/webhook.rb', line 440

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

Instance Method Details

#headersObject



449
450
451
# File 'lib/twilio-ruby/rest/verify/v2/service/webhook.rb', line 449

def headers
    @headers
end

#status_codeObject



453
454
455
# File 'lib/twilio-ruby/rest/verify/v2/service/webhook.rb', line 453

def status_code
    @status_code
end

#to_sObject



457
458
459
# File 'lib/twilio-ruby/rest/verify/v2/service/webhook.rb', line 457

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

#webhookObject



445
446
447
# File 'lib/twilio-ruby/rest/verify/v2/service/webhook.rb', line 445

def webhook
    @webhook_instance
end