Class: Twilio::REST::FlexApi::V1::FlexFlowPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::FlexApi::V1::FlexFlowPageMetadata
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#flex_flow_page ⇒ Object
readonly
Returns the value of attribute flex_flow_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ FlexFlowPageMetadata
constructor
A new instance of FlexFlowPageMetadata.
- #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) ⇒ FlexFlowPageMetadata
Returns a new instance of FlexFlowPageMetadata.
655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 |
# File 'lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb', line 655 def initialize(version, response, solution, limit) super(version, response) @flex_flow_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @flex_flow_page << FlexFlowListResponse.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
#flex_flow_page ⇒ Object (readonly)
Returns the value of attribute flex_flow_page.
653 654 655 |
# File 'lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb', line 653 def flex_flow_page @flex_flow_page end |
Instance Method Details
#each ⇒ Object
671 672 673 674 675 |
# File 'lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb', line 671 def each @flex_flow_page.each do |record| yield record end end |
#to_s ⇒ Object
677 678 679 |
# File 'lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb', line 677 def to_s '<Twilio::REST::FlexApi::V1PageMetadata>'; end |