Class: Twilio::REST::Chat::V2::ServiceContext::ChannelContext::WebhookInstanceMetadata
- Inherits:
-
InstanceResourceMetadata
- Object
- InstanceResourceMetadata
- Twilio::REST::Chat::V2::ServiceContext::ChannelContext::WebhookInstanceMetadata
- Defined in:
- lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, webhook_instance, headers, status_code) ⇒ WebhookInstanceMetadata
constructor
Initializes a new WebhookInstanceMetadata.
- #status_code ⇒ Object
- #to_s ⇒ Object
- #webhook ⇒ Object
Constructor Details
#initialize(version, webhook_instance, headers, status_code) ⇒ WebhookInstanceMetadata
Initializes a new WebhookInstanceMetadata.
466 467 468 469 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb', line 466 def initialize(version, webhook_instance, headers, status_code) super(version, headers, status_code) @webhook_instance = webhook_instance end |
Instance Method Details
#headers ⇒ Object
475 476 477 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb', line 475 def headers @headers end |
#status_code ⇒ Object
479 480 481 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb', line 479 def status_code @status_code end |
#to_s ⇒ Object
483 484 485 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb', line 483 def to_s "<Twilio.Api.V2010.WebhookInstanceMetadata status=#{@status_code}>" end |
#webhook ⇒ Object
471 472 473 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb', line 471 def webhook @webhook_instance end |