Class: Twilio::REST::Studio::V2::FlowContext::ExecutionPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Studio::V2::FlowContext::ExecutionPageMetadata
- Defined in:
- lib/twilio-ruby/rest/studio/v2/flow/execution.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#execution_page ⇒ Object
readonly
Returns the value of attribute execution_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ ExecutionPageMetadata
constructor
A new instance of ExecutionPageMetadata.
- #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) ⇒ ExecutionPageMetadata
Returns a new instance of ExecutionPageMetadata.
524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution.rb', line 524 def initialize(version, response, solution, limit) super(version, response) @execution_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @execution_page << ExecutionListResponse.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
#execution_page ⇒ Object (readonly)
Returns the value of attribute execution_page.
522 523 524 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution.rb', line 522 def execution_page @execution_page end |
Instance Method Details
#each ⇒ Object
540 541 542 543 544 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution.rb', line 540 def each @execution_page.each do |record| yield record end end |
#to_s ⇒ Object
546 547 548 |
# File 'lib/twilio-ruby/rest/studio/v2/flow/execution.rb', line 546 def to_s '<Twilio::REST::Studio::V2PageMetadata>'; end |