Class: Twilio::REST::Insights::V1::ConferencePageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Insights::V1::ConferencePageMetadata
- Defined in:
- lib/twilio-ruby/rest/insights/v1/conference.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#conference_page ⇒ Object
readonly
Returns the value of attribute conference_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ ConferencePageMetadata
constructor
A new instance of ConferencePageMetadata.
- #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) ⇒ ConferencePageMetadata
Returns a new instance of ConferencePageMetadata.
417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 |
# File 'lib/twilio-ruby/rest/insights/v1/conference.rb', line 417 def initialize(version, response, solution, limit) super(version, response) @conference_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @conference_page << ConferenceListResponse.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
#conference_page ⇒ Object (readonly)
Returns the value of attribute conference_page.
415 416 417 |
# File 'lib/twilio-ruby/rest/insights/v1/conference.rb', line 415 def conference_page @conference_page end |
Instance Method Details
#each ⇒ Object
433 434 435 436 437 |
# File 'lib/twilio-ruby/rest/insights/v1/conference.rb', line 433 def each @conference_page.each do |record| yield record end end |
#to_s ⇒ Object
439 440 441 |
# File 'lib/twilio-ruby/rest/insights/v1/conference.rb', line 439 def to_s '<Twilio::REST::Insights::V1PageMetadata>'; end |