Class: VoiceML::SipIpAddressList

Inherits:
Object
  • Object
show all
Includes:
Pageable
Defined in:
lib/voiceml/models/sip.rb

Constant Summary

Constants included from Pageable

Pageable::PAGE_FIELDS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Pageable

#assign_page_fields

Constructor Details

#initialize(hash = {}) ⇒ SipIpAddressList

Returns a new instance of SipIpAddressList.



125
126
127
128
# File 'lib/voiceml/models/sip.rb', line 125

def initialize(hash = {})
  assign_page_fields(hash)
  @ip_addresses = (hash['ip_addresses'] || []).map { |h| SipIpAddress.from_hash(h) }
end

Instance Attribute Details

#ip_addressesObject (readonly)

Returns the value of attribute ip_addresses.



124
125
126
# File 'lib/voiceml/models/sip.rb', line 124

def ip_addresses
  @ip_addresses
end