Class: VoiceML::VoiceV1SourceIpMappingList
- Inherits:
-
Object
- Object
- VoiceML::VoiceV1SourceIpMappingList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/voice_v1.rb
Constant Summary
Constants included from V1Pageable
VoiceML::V1Pageable::META_FIELDS
Instance Attribute Summary collapse
-
#source_ip_mappings ⇒ Object
readonly
Returns the value of attribute source_ip_mappings.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ VoiceV1SourceIpMappingList
constructor
A new instance of VoiceV1SourceIpMappingList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ VoiceV1SourceIpMappingList
Returns a new instance of VoiceV1SourceIpMappingList.
70 71 72 73 |
# File 'lib/voiceml/models/voice_v1.rb', line 70 def initialize(hash = {}) (hash) @source_ip_mappings = (hash['source_ip_mappings'] || []).map { |h| VoiceV1SourceIpMapping.from_hash(h) } end |
Instance Attribute Details
#source_ip_mappings ⇒ Object (readonly)
Returns the value of attribute source_ip_mappings.
69 70 71 |
# File 'lib/voiceml/models/voice_v1.rb', line 69 def source_ip_mappings @source_ip_mappings end |