Class: VoiceML::ConversationsV1ServiceUserConversationList

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

Returns a new instance of ConversationsV1ServiceUserConversationList.



499
500
501
502
# File 'lib/voiceml/models/conversations_v1.rb', line 499

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

Instance Attribute Details

#conversationsObject (readonly)

Returns the value of attribute conversations.



498
499
500
# File 'lib/voiceml/models/conversations_v1.rb', line 498

def conversations
  @conversations
end