Class: VoiceML::SipCredentialListList
- Inherits:
-
Object
- Object
- VoiceML::SipCredentialListList
- Includes:
- Pageable
- Defined in:
- lib/voiceml/models/sip.rb
Constant Summary
Constants included from Pageable
Instance Attribute Summary collapse
-
#credential_lists ⇒ Object
readonly
Returns the value of attribute credential_lists.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ SipCredentialListList
constructor
A new instance of SipCredentialListList.
Methods included from Pageable
Constructor Details
#initialize(hash = {}) ⇒ SipCredentialListList
Returns a new instance of SipCredentialListList.
58 59 60 61 |
# File 'lib/voiceml/models/sip.rb', line 58 def initialize(hash = {}) assign_page_fields(hash) @credential_lists = (hash['credential_lists'] || []).map { |h| SipCredentialList.from_hash(h) } end |
Instance Attribute Details
#credential_lists ⇒ Object (readonly)
Returns the value of attribute credential_lists.
57 58 59 |
# File 'lib/voiceml/models/sip.rb', line 57 def credential_lists @credential_lists end |
Class Method Details
.from_hash(hash) ⇒ Object
62 |
# File 'lib/voiceml/models/sip.rb', line 62 def self.from_hash(hash); new(hash || {}); end |