Class: VoiceML::ConversationsV1UserList
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1UserList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Constant Summary
Constants included from V1Pageable
Instance Attribute Summary collapse
-
#users ⇒ Object
readonly
Returns the value of attribute users.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ ConversationsV1UserList
constructor
A new instance of ConversationsV1UserList.
Methods included from V1Pageable
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 = {}) (hash) @users = (hash['users'] || []).map { |h| ConversationsV1User.from_hash(h) } end |
Instance Attribute Details
#users ⇒ Object (readonly)
Returns the value of attribute users.
164 165 166 |
# File 'lib/voiceml/models/conversations_v1.rb', line 164 def users @users end |