Class: VoiceML::ConversationsV1UserList

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

Returns a new instance of ConversationsV1UserList.



165
166
167
168
# File 'lib/voiceml/models/conversations_v1.rb', line 165

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

Instance Attribute Details

#usersObject (readonly)

Returns the value of attribute users.



164
165
166
# File 'lib/voiceml/models/conversations_v1.rb', line 164

def users
  @users
end