Class: Twilio::REST::Video::V1::RoomContext::ParticipantContext::PublishedTrackPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Video::V1::RoomContext::ParticipantContext::PublishedTrackPageMetadata
- Defined in:
- lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#published_track_page ⇒ Object
readonly
Returns the value of attribute published_track_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ PublishedTrackPageMetadata
constructor
A new instance of PublishedTrackPageMetadata.
- #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) ⇒ PublishedTrackPageMetadata
Returns a new instance of PublishedTrackPageMetadata.
318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb', line 318 def initialize(version, response, solution, limit) super(version, response) @published_track_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @published_track_page << PublishedTrackListResponse.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
#published_track_page ⇒ Object (readonly)
Returns the value of attribute published_track_page.
316 317 318 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb', line 316 def published_track_page @published_track_page end |
Instance Method Details
#each ⇒ Object
334 335 336 337 338 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb', line 334 def each @published_track_page.each do |record| yield record end end |
#to_s ⇒ Object
340 341 342 |
# File 'lib/twilio-ruby/rest/video/v1/room/participant/published_track.rb', line 340 def to_s '<Twilio::REST::Video::V1PageMetadata>'; end |