Class: VoiceML::VoiceV1SourceIpMappingList

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 = {}) ⇒ VoiceV1SourceIpMappingList

Returns a new instance of VoiceV1SourceIpMappingList.



70
71
72
73
# File 'lib/voiceml/models/voice_v1.rb', line 70

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

Instance Attribute Details

#source_ip_mappingsObject (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