class Twilio::REST::Api::V2010::AccountContext::SipList::CredentialListContext::CredentialPage
Public Class Methods
new(version, response, solution)
click to toggle source
Initialize the CredentialPage
@param [Version] version Version
that contains the resource @param [Response] response Response
from the API @param [Hash] solution Path solution for the resource @return [CredentialPage] CredentialPage
Calls superclass method
Twilio::REST::Page::new
# File lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb 149 def initialize(version, response, solution) 150 super(version, response) 151 152 # Path Solution 153 @solution = solution 154 end
Public Instance Methods
get_instance(payload)
click to toggle source
Build an instance of CredentialInstance
@param [Hash] payload Payload response from the API @return [CredentialInstance] CredentialInstance
# File lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb 160 def get_instance(payload) 161 CredentialInstance.new( 162 @version, 163 payload, 164 account_sid: @solution[:account_sid], 165 credential_list_sid: @solution[:credential_list_sid], 166 ) 167 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb 171 def to_s 172 '<Twilio.Api.V2010.CredentialPage>' 173 end