Class: Twilio::REST::Chat::V2::ServiceContext::ChannelContext::WebhookListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Chat::V2::ServiceContext::ChannelContext::WebhookListResponse
- Defined in:
- lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb,
lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ WebhookListResponse
constructor
A new instance of WebhookListResponse.
- #status_code ⇒ Object
- #webhook ⇒ Object
- #webhook_instance ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ WebhookListResponse
Returns a new instance of WebhookListResponse.
492 493 494 495 496 497 498 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb', line 492 def initialize(version, payload, key) @webhook_instance = payload.body[key].map do |data| WebhookInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
585 586 587 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb', line 585 def headers @headers end |
#status_code ⇒ Object
589 590 591 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb', line 589 def status_code @status_code end |
#webhook ⇒ Object
581 582 583 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb', line 581 def webhook @webhook end |
#webhook_instance ⇒ Object
500 501 502 |
# File 'lib/twilio-ruby/rest/chat/v2/service/channel/webhook.rb', line 500 def webhook_instance @instance end |