Class: Twilio::REST::FlexApi::V1::InteractionContext::InteractionChannelContext::InteractionChannelParticipantPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::FlexApi::V1::InteractionContext::InteractionChannelContext::InteractionChannelParticipantPageMetadata
- Defined in:
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#interaction_channel_participant_page ⇒ Object
readonly
Returns the value of attribute interaction_channel_participant_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ InteractionChannelParticipantPageMetadata
constructor
A new instance of InteractionChannelParticipantPageMetadata.
- #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) ⇒ InteractionChannelParticipantPageMetadata
Returns a new instance of InteractionChannelParticipantPageMetadata.
412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 |
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb', line 412 def initialize(version, response, solution, limit) super(version, response) @interaction_channel_participant_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @interaction_channel_participant_page << InteractionChannelParticipantListResponse.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
#interaction_channel_participant_page ⇒ Object (readonly)
Returns the value of attribute interaction_channel_participant_page.
410 411 412 |
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb', line 410 def interaction_channel_participant_page @interaction_channel_participant_page end |
Instance Method Details
#each ⇒ Object
428 429 430 431 432 |
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb', line 428 def each @interaction_channel_participant_page.each do |record| yield record end end |
#to_s ⇒ Object
434 435 436 |
# File 'lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb', line 434 def to_s '<Twilio::REST::FlexApi::V1PageMetadata>'; end |