Class: VoiceML::SipIpAddressList
- Inherits:
-
Object
- Object
- VoiceML::SipIpAddressList
- Includes:
- Pageable
- Defined in:
- lib/voiceml/models/sip.rb
Constant Summary
Constants included from Pageable
Instance Attribute Summary collapse
-
#ip_addresses ⇒ Object
readonly
Returns the value of attribute ip_addresses.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ SipIpAddressList
constructor
A new instance of SipIpAddressList.
Methods included from Pageable
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_addresses ⇒ Object (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 |