Class: Twilio::REST::Proxy::V1::ServiceContext::SessionContext::ParticipantContext::MessageInteractionPageMetadata
- Inherits:
-
Twilio::REST::PageMetadata
- Object
- Twilio::REST::PageMetadata
- Twilio::REST::Proxy::V1::ServiceContext::SessionContext::ParticipantContext::MessageInteractionPageMetadata
- Defined in:
- lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb
Constant Summary
Constants inherited from Twilio::REST::PageMetadata
Twilio::REST::PageMetadata::META_KEYS
Instance Attribute Summary collapse
-
#message_interaction_page ⇒ Object
readonly
Returns the value of attribute message_interaction_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ MessageInteractionPageMetadata
constructor
A new instance of MessageInteractionPageMetadata.
- #to_s ⇒ Object
Methods inherited from Twilio::REST::PageMetadata
#get_key, #next_page, #next_page_url, #previous_page, #previous_page_url, #process_response
Constructor Details
#initialize(version, response, solution, limit) ⇒ MessageInteractionPageMetadata
Returns a new instance of MessageInteractionPageMetadata.
390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 |
# File 'lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb', line 390 def initialize(version, response, solution, limit) super(version, response) = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) << MessageInteractionListResponse.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
#message_interaction_page ⇒ Object (readonly)
Returns the value of attribute message_interaction_page.
388 389 390 |
# File 'lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb', line 388 def end |
Instance Method Details
#each ⇒ Object
406 407 408 409 410 |
# File 'lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb', line 406 def each .each do |record| yield record end end |
#to_s ⇒ Object
412 413 414 |
# File 'lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb', line 412 def to_s '<Twilio::REST::Proxy::V1PageMetadata>'; end |