Class: VoiceML::ConversationsV1UserConversationList
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1UserConversationList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Constant Summary
Constants included from V1Pageable
Instance Attribute Summary collapse
-
#conversations ⇒ Object
readonly
Returns the value of attribute conversations.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ ConversationsV1UserConversationList
constructor
A new instance of ConversationsV1UserConversationList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ ConversationsV1UserConversationList
Returns a new instance of ConversationsV1UserConversationList.
296 297 298 299 |
# File 'lib/voiceml/models/conversations_v1.rb', line 296 def initialize(hash = {}) (hash) @conversations = (hash['conversations'] || []).map { |h| ConversationsV1UserConversation.from_hash(h) } end |
Instance Attribute Details
#conversations ⇒ Object (readonly)
Returns the value of attribute conversations.
295 296 297 |
# File 'lib/voiceml/models/conversations_v1.rb', line 295 def conversations @conversations end |