Class: VoiceML::VoiceV1ByocTrunkList
- Inherits:
-
Object
- Object
- VoiceML::VoiceV1ByocTrunkList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/voice_v1.rb
Constant Summary
Constants included from V1Pageable
VoiceML::V1Pageable::META_FIELDS
Instance Attribute Summary collapse
-
#byoc_trunks ⇒ Object
readonly
Returns the value of attribute byoc_trunks.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ VoiceV1ByocTrunkList
constructor
A new instance of VoiceV1ByocTrunkList.
Methods included from V1Pageable
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 = {}) (hash) @byoc_trunks = (hash['byoc_trunks'] || []).map { |h| VoiceV1ByocTrunk.from_hash(h) } end |
Instance Attribute Details
#byoc_trunks ⇒ Object (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 |