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

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

Instance Method Summary collapse

Constructor Details

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

Initializes a new WebhookInstanceMetadata.



452
453
454
455
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb', line 452

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

Instance Method Details

#headersObject



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

def headers
    @headers
end

#status_codeObject



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

def status_code
    @status_code
end

#to_sObject



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

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

#webhookObject



457
458
459
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb', line 457

def webhook
    @webhook_instance
end