Class: Twilio::REST::Api::V2010::AccountContext::ConferenceContext::ParticipantPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Api::V2010::AccountContext::ConferenceContext::ParticipantPageMetadata
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#participant_page ⇒ Object
readonly
Returns the value of attribute participant_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ ParticipantPageMetadata
constructor
A new instance of ParticipantPageMetadata.
- #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) ⇒ ParticipantPageMetadata
Returns a new instance of ParticipantPageMetadata.
856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 |
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 856 def initialize(version, response, solution, limit) super(version, response) @participant_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @participant_page << ParticipantListResponse.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
#participant_page ⇒ Object (readonly)
Returns the value of attribute participant_page.
854 855 856 |
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 854 def participant_page @participant_page end |
Instance Method Details
#each ⇒ Object
872 873 874 875 876 |
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 872 def each @participant_page.each do |record| yield record end end |
#to_s ⇒ Object
878 879 880 |
# File 'lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb', line 878 def to_s '<Twilio::REST::Api::V2010PageMetadata>'; end |