Class: VoiceML::VoiceV1ByocTrunkList

Inherits:
Object
  • Object
show all
Includes:
V1Pageable
Defined in:
lib/voiceml/models/voice_v1.rb

Constant Summary

Constants included from V1Pageable

VoiceML::V1Pageable::META_FIELDS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from V1Pageable

#assign_meta_fields

Constructor Details

#initialize(hash = {}) ⇒ VoiceV1ByocTrunkList

Returns a new instance of VoiceV1ByocTrunkList.



94
95
96
97
# File 'lib/voiceml/models/voice_v1.rb', line 94

def initialize(hash = {})
  assign_meta_fields(hash)
  @byoc_trunks = (hash['byoc_trunks'] || []).map { |h| VoiceV1ByocTrunk.from_hash(h) }
end

Instance Attribute Details

#byoc_trunksObject (readonly)

Returns the value of attribute byoc_trunks.



93
94
95
# File 'lib/voiceml/models/voice_v1.rb', line 93

def byoc_trunks
  @byoc_trunks
end