Class: VoiceML::SipDomainList
- Inherits:
-
Object
- Object
- VoiceML::SipDomainList
- Includes:
- Pageable
- Defined in:
- lib/voiceml/models/sip.rb
Constant Summary
Constants included from Pageable
Instance Attribute Summary collapse
-
#domains ⇒ Object
readonly
Returns the value of attribute domains.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ SipDomainList
constructor
A new instance of SipDomainList.
Methods included from Pageable
Constructor Details
#initialize(hash = {}) ⇒ SipDomainList
Returns a new instance of SipDomainList.
36 37 38 39 |
# File 'lib/voiceml/models/sip.rb', line 36 def initialize(hash = {}) assign_page_fields(hash) @domains = (hash['domains'] || []).map { |h| SipDomain.from_hash(h) } end |
Instance Attribute Details
#domains ⇒ Object (readonly)
Returns the value of attribute domains.
35 36 37 |
# File 'lib/voiceml/models/sip.rb', line 35 def domains @domains end |