Class: VoiceML::SipCredentialListPage

Inherits:
Object
  • Object
show all
Includes:
Pageable
Defined in:
lib/voiceml/models/sip.rb

Overview

SipCredentialListPage — spec name is ‘SipCredentialListPage` but it’s a page of CREDENTIALS (not credential-lists), mirroring Twilio.

Constant Summary

Constants included from Pageable

Pageable::PAGE_FIELDS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Pageable

#assign_page_fields

Constructor Details

#initialize(hash = {}) ⇒ SipCredentialListPage

Returns a new instance of SipCredentialListPage.



81
82
83
84
# File 'lib/voiceml/models/sip.rb', line 81

def initialize(hash = {})
  assign_page_fields(hash)
  @credentials = (hash['credentials'] || []).map { |h| SipCredential.from_hash(h) }
end

Instance Attribute Details

#credentialsObject (readonly)

Returns the value of attribute credentials.



80
81
82
# File 'lib/voiceml/models/sip.rb', line 80

def credentials
  @credentials
end