Class: Twilio::REST::Conversations::V1::ServiceContext::ConversationContext::WebhookListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Conversations::V1::ServiceContext::ConversationContext::WebhookListResponse
- Defined in:
- lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb,
lib/twilio-ruby/rest/conversations/v1/service/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.
486 487 488 489 490 491 492 |
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb', line 486 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
579 580 581 |
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb', line 579 def headers @headers end |
#status_code ⇒ Object
583 584 585 |
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb', line 583 def status_code @status_code end |
#webhook ⇒ Object
575 576 577 |
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb', line 575 def webhook @webhook end |
#webhook_instance ⇒ Object
494 495 496 |
# File 'lib/twilio-ruby/rest/conversations/v1/service/conversation/webhook.rb', line 494 def webhook_instance @instance end |