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.
419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb', line 419 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.
417 418 419 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb', line 417 def credential_list_mapping_page @credential_list_mapping_page end |
Instance Method Details
#each ⇒ Object
435 436 437 438 439 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb', line 435 def each @credential_list_mapping_page.each do |record| yield record end end |
#to_s ⇒ Object
441 442 443 |
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb', line 441 def to_s '<Twilio::REST::Api::V2010PageMetadata>'; end |