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.
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
# File 'lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb', line 193 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.
191 192 193 |
# File 'lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb', line 191 def identity_resolution_setting_page @identity_resolution_setting_page end |
Instance Method Details
#each ⇒ Object
209 210 211 212 213 |
# File 'lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb', line 209 def each @identity_resolution_setting_page.each do |record| yield record end end |
#to_s ⇒ Object
215 216 217 |
# File 'lib/twilio-ruby/rest/memory/v1/identity_resolution_setting.rb', line 215 def to_s '<Twilio::REST::Memory::V1PageMetadata>'; end |