Class: VoiceML::ConversationsV1ServiceConversationScopedWebhookList

Inherits:
Object
  • Object
show all
Includes:
V1Pageable
Defined in:
lib/voiceml/models/conversations_v1.rb

Constant Summary

Constants included from V1Pageable

V1Pageable::META_FIELDS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from V1Pageable

#assign_meta_fields

Constructor Details

#initialize(hash = {}) ⇒ ConversationsV1ServiceConversationScopedWebhookList

Returns a new instance of ConversationsV1ServiceConversationScopedWebhookList.



436
437
438
439
# File 'lib/voiceml/models/conversations_v1.rb', line 436

def initialize(hash = {})
  assign_meta_fields(hash)
  @webhooks = (hash['webhooks'] || []).map { |h| ConversationsV1ServiceConversationScopedWebhook.from_hash(h) }
end

Instance Attribute Details

#webhooksObject (readonly)

Returns the value of attribute webhooks.



435
436
437
# File 'lib/voiceml/models/conversations_v1.rb', line 435

def webhooks
  @webhooks
end