Class: Twilio::REST::Preview::Marketplace::InstalledAddOnPageMetadata
- Inherits:
-
Twilio::REST::PageMetadata
- Object
- Twilio::REST::PageMetadata
- Twilio::REST::Preview::Marketplace::InstalledAddOnPageMetadata
- Defined in:
- lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb
Constant Summary
Constants inherited from Twilio::REST::PageMetadata
Twilio::REST::PageMetadata::META_KEYS
Instance Attribute Summary collapse
-
#installed_add_on_page ⇒ Object
readonly
Returns the value of attribute installed_add_on_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ InstalledAddOnPageMetadata
constructor
A new instance of InstalledAddOnPageMetadata.
- #to_s ⇒ Object
Methods inherited from Twilio::REST::PageMetadata
#get_key, #next_page, #next_page_url, #previous_page, #previous_page_url, #process_response
Constructor Details
#initialize(version, response, solution, limit) ⇒ InstalledAddOnPageMetadata
Returns a new instance of InstalledAddOnPageMetadata.
499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 |
# File 'lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb', line 499 def initialize(version, response, solution, limit) super(version, response) @installed_add_on_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @installed_add_on_page << InstalledAddOnListResponse.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
#installed_add_on_page ⇒ Object (readonly)
Returns the value of attribute installed_add_on_page.
497 498 499 |
# File 'lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb', line 497 def installed_add_on_page @installed_add_on_page end |
Instance Method Details
#each ⇒ Object
515 516 517 518 519 |
# File 'lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb', line 515 def each @installed_add_on_page.each do |record| yield record end end |
#to_s ⇒ Object
521 522 523 |
# File 'lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb', line 521 def to_s '<Twilio::REST::Preview::MarketplacePageMetadata>'; end |