Class: VoiceML::ConversationsV1RoleList
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1RoleList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Constant Summary
Constants included from V1Pageable
Instance Attribute Summary collapse
-
#roles ⇒ Object
readonly
Returns the value of attribute roles.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ ConversationsV1RoleList
constructor
A new instance of ConversationsV1RoleList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ ConversationsV1RoleList
Returns a new instance of ConversationsV1RoleList.
143 144 145 146 |
# File 'lib/voiceml/models/conversations_v1.rb', line 143 def initialize(hash = {}) (hash) @roles = (hash['roles'] || []).map { |h| ConversationsV1Role.from_hash(h) } end |
Instance Attribute Details
#roles ⇒ Object (readonly)
Returns the value of attribute roles.
142 143 144 |
# File 'lib/voiceml/models/conversations_v1.rb', line 142 def roles @roles end |