Class: VoiceML::VoiceV1ConnectionPolicyList
- Inherits:
-
Object
- Object
- VoiceML::VoiceV1ConnectionPolicyList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/voice_v1.rb
Constant Summary
Constants included from V1Pageable
VoiceML::V1Pageable::META_FIELDS
Instance Attribute Summary collapse
-
#connection_policies ⇒ Object
readonly
Returns the value of attribute connection_policies.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ VoiceV1ConnectionPolicyList
constructor
A new instance of VoiceV1ConnectionPolicyList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ VoiceV1ConnectionPolicyList
Returns a new instance of VoiceV1ConnectionPolicyList.
115 116 117 118 |
# File 'lib/voiceml/models/voice_v1.rb', line 115 def initialize(hash = {}) (hash) @connection_policies = (hash['connection_policies'] || []).map { |h| VoiceV1ConnectionPolicy.from_hash(h) } end |
Instance Attribute Details
#connection_policies ⇒ Object (readonly)
Returns the value of attribute connection_policies.
114 115 116 |
# File 'lib/voiceml/models/voice_v1.rb', line 114 def connection_policies @connection_policies end |