Class: Twilio::REST::Conversations::V1::ConversationContext::WebhookListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Conversations::V1::ConversationContext::WebhookListResponse
- Defined in:
- lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb,
lib/twilio-ruby/rest/conversations/v1/conversation/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.
478 479 480 481 482 483 484 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb', line 478 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
571 572 573 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb', line 571 def headers @headers end |
#status_code ⇒ Object
575 576 577 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb', line 575 def status_code @status_code end |
#webhook ⇒ Object
567 568 569 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb', line 567 def webhook @webhook end |
#webhook_instance ⇒ Object
486 487 488 |
# File 'lib/twilio-ruby/rest/conversations/v1/conversation/webhook.rb', line 486 def webhook_instance @instance end |