Class: Twilio::REST::Studio::V2::FlowValidatePageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Studio::V2::FlowValidatePageMetadata
- Defined in:
- lib/twilio-ruby/rest/studio/v2/flow_validate.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#flow_validate_page ⇒ Object
readonly
Returns the value of attribute flow_validate_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ FlowValidatePageMetadata
constructor
A new instance of FlowValidatePageMetadata.
- #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) ⇒ FlowValidatePageMetadata
Returns a new instance of FlowValidatePageMetadata.
150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 150 def initialize(version, response, solution, limit) super(version, response) @flow_validate_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @flow_validate_page << FlowValidateListResponse.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_validate_page ⇒ Object (readonly)
Returns the value of attribute flow_validate_page.
148 149 150 |
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 148 def flow_validate_page @flow_validate_page end |
Instance Method Details
#each ⇒ Object
166 167 168 169 170 |
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 166 def each @flow_validate_page.each do |record| yield record end end |
#to_s ⇒ Object
172 173 174 |
# File 'lib/twilio-ruby/rest/studio/v2/flow_validate.rb', line 172 def to_s '<Twilio::REST::Studio::V2PageMetadata>'; end |