Class: VoiceML::MessagingServiceList

Inherits:
Object
  • Object
show all
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

V1Pageable::META_FIELDS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from V1Pageable

#assign_meta_fields

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 = {})
  assign_meta_fields(hash)
  @services = (hash['services'] || []).map { |h| MessagingService.from_hash(h) }
end

Instance Attribute Details

#servicesObject (readonly)

Returns the value of attribute services.



34
35
36
# File 'lib/voiceml/models/messaging_v1.rb', line 34

def services
  @services
end