Class: Twilio::REST::Api::V2010::AccountContext::SipList::DomainContext::CredentialListMappingPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Api::V2010::AccountContext::SipList::DomainContext::CredentialListMappingPageMetadata
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#credential_list_mapping_page ⇒ Object
readonly
Returns the value of attribute credential_list_mapping_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ CredentialListMappingPageMetadata
constructor
A new instance of CredentialListMappingPageMetadata.
- #to_s ⇒ Object
Methods inherited from PageMetadata
#get_key, #next_page, #next_page_url, #previous_page, #previous_page_url, #process_response
Constructor Details
#initialize(version, response, solution, limit) ⇒ CredentialListMappingPageMetadata
Returns a new instance of CredentialListMappingPageMetadata.
411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb', line 411 def initialize(version, response, solution, limit) super(version, response) @credential_list_mapping_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @credential_list_mapping_page << CredentialListMappingListResponse.new(version, @payload, key, limit - records) @payload = self.next_page break unless @payload records += @payload.body[key].size end # Path Solution @solution = solution end |
Instance Attribute Details
#credential_list_mapping_page ⇒ Object (readonly)
Returns the value of attribute credential_list_mapping_page.
409 410 411 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb', line 409 def credential_list_mapping_page @credential_list_mapping_page end |
Instance Method Details
#each ⇒ Object
427 428 429 430 431 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb', line 427 def each @credential_list_mapping_page.each do |record| yield record end end |
#to_s ⇒ Object
433 434 435 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb', line 433 def to_s '<Twilio::REST::Api::V2010PageMetadata>'; end |