Class: Twilio::REST::Verify::V2::ServiceContext::WebhookListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Verify::V2::ServiceContext::WebhookListResponse
- Defined in:
- lib/twilio-ruby/rest/verify/v2/service/webhook.rb,
lib/twilio-ruby/rest/verify/v2/service/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.
466 467 468 469 470 471 472 |
# File 'lib/twilio-ruby/rest/verify/v2/service/webhook.rb', line 466 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
559 560 561 |
# File 'lib/twilio-ruby/rest/verify/v2/service/webhook.rb', line 559 def headers @headers end |
#status_code ⇒ Object
563 564 565 |
# File 'lib/twilio-ruby/rest/verify/v2/service/webhook.rb', line 563 def status_code @status_code end |
#webhook ⇒ Object
555 556 557 |
# File 'lib/twilio-ruby/rest/verify/v2/service/webhook.rb', line 555 def webhook @webhook end |
#webhook_instance ⇒ Object
474 475 476 |
# File 'lib/twilio-ruby/rest/verify/v2/service/webhook.rb', line 474 def webhook_instance @instance end |