Class: VoiceML::MessagingServiceList
- Inherits:
-
Object
- Object
- VoiceML::MessagingServiceList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/messaging_v1.rb
Overview
List envelope for GET /v1/Services on the messaging host.
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 = {}) ⇒ MessagingServiceList
constructor
A new instance of MessagingServiceList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ MessagingServiceList
Returns a new instance of MessagingServiceList.
35 36 37 38 |
# File 'lib/voiceml/models/messaging_v1.rb', line 35 def initialize(hash = {}) (hash) @services = (hash['services'] || []).map { |h| MessagingService.from_hash(h) } end |
Instance Attribute Details
#services ⇒ Object (readonly)
Returns the value of attribute services.
34 35 36 |
# File 'lib/voiceml/models/messaging_v1.rb', line 34 def services @services end |