Class: VoiceML::VoiceV1ConnectionPolicyTargetList
- Inherits:
-
Object
- Object
- VoiceML::VoiceV1ConnectionPolicyTargetList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/voice_v1.rb
Constant Summary
Constants included from V1Pageable
VoiceML::V1Pageable::META_FIELDS
Instance Attribute Summary collapse
-
#targets ⇒ Object
readonly
Returns the value of attribute targets.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ VoiceV1ConnectionPolicyTargetList
constructor
A new instance of VoiceV1ConnectionPolicyTargetList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ VoiceV1ConnectionPolicyTargetList
Returns a new instance of VoiceV1ConnectionPolicyTargetList.
137 138 139 140 |
# File 'lib/voiceml/models/voice_v1.rb', line 137 def initialize(hash = {}) (hash) @targets = (hash['targets'] || []).map { |h| VoiceV1ConnectionPolicyTarget.from_hash(h) } end |
Instance Attribute Details
#targets ⇒ Object (readonly)
Returns the value of attribute targets.
136 137 138 |
# File 'lib/voiceml/models/voice_v1.rb', line 136 def targets @targets end |