Class: VoiceML::ConversationsV1ServiceConversationMessageList

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

Returns a new instance of ConversationsV1ServiceConversationMessageList.



368
369
370
371
# File 'lib/voiceml/models/conversations_v1.rb', line 368

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

Instance Attribute Details

#messagesObject (readonly)

Returns the value of attribute messages.



367
368
369
# File 'lib/voiceml/models/conversations_v1.rb', line 367

def messages
  @messages
end