Class: VoiceML::SipCredentialListMappingList

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Pageable

#assign_page_fields

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_mappingsObject (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