Class: VoiceML::ConversationsV1ConversationMessageReceiptList

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 = {}) ⇒ ConversationsV1ConversationMessageReceiptList

Returns a new instance of ConversationsV1ConversationMessageReceiptList.



100
101
102
103
# File 'lib/voiceml/models/conversations_v1.rb', line 100

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

Instance Attribute Details

#delivery_receiptsObject (readonly)

Returns the value of attribute delivery_receipts.



99
100
101
# File 'lib/voiceml/models/conversations_v1.rb', line 99

def delivery_receipts
  @delivery_receipts
end