Class: VoiceML::SipCredentialListMappingList
- Inherits:
-
Object
- Object
- VoiceML::SipCredentialListMappingList
- Includes:
- Pageable
- Defined in:
- lib/voiceml/models/sip.rb
Constant Summary
Constants included from Pageable
Instance Attribute Summary collapse
-
#credential_list_mappings ⇒ Object
readonly
Returns the value of attribute credential_list_mappings.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ SipCredentialListMappingList
constructor
A new instance of SipCredentialListMappingList.
Methods included from Pageable
Constructor Details
#initialize(hash = {}) ⇒ SipCredentialListMappingList
Returns a new instance of SipCredentialListMappingList.
153 154 155 156 |
# File 'lib/voiceml/models/sip.rb', line 153 def initialize(hash = {}) assign_page_fields(hash) @credential_list_mappings = (hash['credential_list_mappings'] || []).map { |h| SipDomainMapping.from_hash(h) } end |
Instance Attribute Details
#credential_list_mappings ⇒ Object (readonly)
Returns the value of attribute credential_list_mappings.
152 153 154 |
# File 'lib/voiceml/models/sip.rb', line 152 def credential_list_mappings @credential_list_mappings end |
Class Method Details
.from_hash(hash) ⇒ Object
157 |
# File 'lib/voiceml/models/sip.rb', line 157 def self.from_hash(hash); new(hash || {}); end |