Class: VoiceML::ConversationsV1ConversationList
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ConversationList
- 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 = {}) ⇒ ConversationsV1ConversationList
constructor
A new instance of ConversationsV1ConversationList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ ConversationsV1ConversationList
Returns a new instance of ConversationsV1ConversationList.
34 35 36 37 |
# File 'lib/voiceml/models/conversations_v1.rb', line 34 def initialize(hash = {}) (hash) @conversations = (hash['conversations'] || []).map { |h| ConversationsV1Conversation.from_hash(h) } end |
Instance Attribute Details
#conversations ⇒ Object (readonly)
Returns the value of attribute conversations.
33 34 35 |
# File 'lib/voiceml/models/conversations_v1.rb', line 33 def conversations @conversations end |