Class: Twilio::REST::Conversations::V1::ConfigurationContext::WebhookListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Conversations::V1::ConfigurationContext::WebhookListResponse
- Defined in:
- lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb,
lib/twilio-ruby/rest/conversations/v1/configuration/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.
233 234 235 236 237 238 239 |
# File 'lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb', line 233 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
326 327 328 |
# File 'lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb', line 326 def headers @headers end |
#status_code ⇒ Object
330 331 332 |
# File 'lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb', line 330 def status_code @status_code end |
#webhook ⇒ Object
322 323 324 |
# File 'lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb', line 322 def webhook @webhook end |
#webhook_instance ⇒ Object
241 242 243 |
# File 'lib/twilio-ruby/rest/conversations/v1/configuration/webhook.rb', line 241 def webhook_instance @instance end |