Class: Twilio::REST::Studio::V2::FlowPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Studio::V2::FlowPageMetadata
- Defined in:
- lib/twilio-ruby/rest/studio/v2/flow.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#flow_page ⇒ Object
readonly
Returns the value of attribute flow_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ FlowPageMetadata
constructor
A new instance of FlowPageMetadata.
- #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) ⇒ FlowPageMetadata
Returns a new instance of FlowPageMetadata.
542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 |
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 542 def initialize(version, response, solution, limit) super(version, response) @flow_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @flow_page << FlowListResponse.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
#flow_page ⇒ Object (readonly)
Returns the value of attribute flow_page.
540 541 542 |
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 540 def flow_page @flow_page end |
Instance Method Details
#each ⇒ Object
558 559 560 561 562 |
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 558 def each @flow_page.each do |record| yield record end end |
#to_s ⇒ Object
564 565 566 |
# File 'lib/twilio-ruby/rest/studio/v2/flow.rb', line 564 def to_s '<Twilio::REST::Studio::V2PageMetadata>'; end |