Class: Twilio::REST::Memory::V1::IdentityResolutionSettingPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Memory::V1::IdentityResolutionSettingPageMetadata
- Defined in:
- lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#identity_resolution_setting_page ⇒ Object
readonly
Returns the value of attribute identity_resolution_setting_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ IdentityResolutionSettingPageMetadata
constructor
A new instance of IdentityResolutionSettingPageMetadata.
- #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) ⇒ IdentityResolutionSettingPageMetadata
Returns a new instance of IdentityResolutionSettingPageMetadata.
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 |
# File 'lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb', line 274 def initialize(version, response, solution, limit) super(version, response) @identity_resolution_setting_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @identity_resolution_setting_page << IdentityResolutionSettingListResponse.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
#identity_resolution_setting_page ⇒ Object (readonly)
Returns the value of attribute identity_resolution_setting_page.
272 273 274 |
# File 'lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb', line 272 def identity_resolution_setting_page @identity_resolution_setting_page end |
Instance Method Details
#each ⇒ Object
290 291 292 293 294 |
# File 'lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb', line 290 def each @identity_resolution_setting_page.each do |record| yield record end end |
#to_s ⇒ Object
296 297 298 |
# File 'lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb', line 296 def to_s '<Twilio::REST::Memory::V1PageMetadata>'; end |