Class: Twilio::REST::Serverless::V1::ServiceContext::EnvironmentContext::VariablePageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Serverless::V1::ServiceContext::EnvironmentContext::VariablePageMetadata
- Defined in:
- lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#variable_page ⇒ Object
readonly
Returns the value of attribute variable_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ VariablePageMetadata
constructor
A new instance of VariablePageMetadata.
- #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) ⇒ VariablePageMetadata
Returns a new instance of VariablePageMetadata.
484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 |
# File 'lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb', line 484 def initialize(version, response, solution, limit) super(version, response) @variable_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @variable_page << VariableListResponse.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
#variable_page ⇒ Object (readonly)
Returns the value of attribute variable_page.
482 483 484 |
# File 'lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb', line 482 def variable_page @variable_page end |
Instance Method Details
#each ⇒ Object
500 501 502 503 504 |
# File 'lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb', line 500 def each @variable_page.each do |record| yield record end end |
#to_s ⇒ Object
506 507 508 |
# File 'lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb', line 506 def to_s '<Twilio::REST::Serverless::V1PageMetadata>'; end |