Class: Twilio::REST::Intelligence::V2::OperatorAttachmentPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Intelligence::V2::OperatorAttachmentPageMetadata
- Defined in:
- lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#operator_attachment_page ⇒ Object
readonly
Returns the value of attribute operator_attachment_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ OperatorAttachmentPageMetadata
constructor
A new instance of OperatorAttachmentPageMetadata.
- #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) ⇒ OperatorAttachmentPageMetadata
Returns a new instance of OperatorAttachmentPageMetadata.
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 |
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb', line 235 def initialize(version, response, solution, limit) super(version, response) = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) << OperatorAttachmentListResponse.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
#operator_attachment_page ⇒ Object (readonly)
Returns the value of attribute operator_attachment_page.
233 234 235 |
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb', line 233 def end |
Instance Method Details
#each ⇒ Object
251 252 253 254 255 |
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb', line 251 def each .each do |record| yield record end end |
#to_s ⇒ Object
257 258 259 |
# File 'lib/twilio-ruby/rest/intelligence/v2/operator_attachment.rb', line 257 def to_s '<Twilio::REST::Intelligence::V2PageMetadata>'; end |