Class: VoiceML::ConversationsV1ServiceList
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ServiceList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Constant Summary
Constants included from V1Pageable
Instance Attribute Summary collapse
-
#services ⇒ Object
readonly
Returns the value of attribute services.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ ConversationsV1ServiceList
constructor
A new instance of ConversationsV1ServiceList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ ConversationsV1ServiceList
Returns a new instance of ConversationsV1ServiceList.
317 318 319 320 |
# File 'lib/voiceml/models/conversations_v1.rb', line 317 def initialize(hash = {}) (hash) @services = (hash['services'] || []).map { |h| ConversationsV1Service.from_hash(h) } end |
Instance Attribute Details
#services ⇒ Object (readonly)
Returns the value of attribute services.
316 317 318 |
# File 'lib/voiceml/models/conversations_v1.rb', line 316 def services @services end |