Class: Twilio::REST::Api::V2010::AccountContext::CallContext::TranscriptionPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Api::V2010::AccountContext::CallContext::TranscriptionPageMetadata
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#transcription_page ⇒ Object
readonly
Returns the value of attribute transcription_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ TranscriptionPageMetadata
constructor
A new instance of TranscriptionPageMetadata.
- #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) ⇒ TranscriptionPageMetadata
Returns a new instance of TranscriptionPageMetadata.
367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb', line 367 def initialize(version, response, solution, limit) super(version, response) @transcription_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @transcription_page << TranscriptionListResponse.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
#transcription_page ⇒ Object (readonly)
Returns the value of attribute transcription_page.
365 366 367 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb', line 365 def transcription_page @transcription_page end |
Instance Method Details
#each ⇒ Object
383 384 385 386 387 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb', line 383 def each @transcription_page.each do |record| yield record end end |
#to_s ⇒ Object
389 390 391 |
# File 'lib/twilio-ruby/rest/api/v2010/account/call/transcription.rb', line 389 def to_s '<Twilio::REST::Api::V2010PageMetadata>'; end |