Class: VoiceML::ConversationsV1ServiceUserList

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

Returns a new instance of ConversationsV1ServiceUserList.



543
544
545
546
# File 'lib/voiceml/models/conversations_v1.rb', line 543

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

Instance Attribute Details

#usersObject (readonly)

Returns the value of attribute users.



542
543
544
# File 'lib/voiceml/models/conversations_v1.rb', line 542

def users
  @users
end