Class: Twilio::REST::Voice::V1::DialingPermissionsList::CountryContext::HighriskSpecialPrefixPageMetadata
- Inherits:
-
PageMetadata
- Object
- PageMetadata
- Twilio::REST::Voice::V1::DialingPermissionsList::CountryContext::HighriskSpecialPrefixPageMetadata
- Defined in:
- lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb
Constant Summary
Constants inherited from PageMetadata
Instance Attribute Summary collapse
-
#highrisk_special_prefix_page ⇒ Object
readonly
Returns the value of attribute highrisk_special_prefix_page.
Instance Method Summary collapse
- #each ⇒ Object
-
#initialize(version, response, solution, limit) ⇒ HighriskSpecialPrefixPageMetadata
constructor
A new instance of HighriskSpecialPrefixPageMetadata.
- #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) ⇒ HighriskSpecialPrefixPageMetadata
Returns a new instance of HighriskSpecialPrefixPageMetadata.
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb', line 196 def initialize(version, response, solution, limit) super(version, response) @highrisk_special_prefix_page = [] @limit = limit key = get_key(response.body) records = 0 while( limit != :unset && records < limit ) @highrisk_special_prefix_page << HighriskSpecialPrefixListResponse.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
#highrisk_special_prefix_page ⇒ Object (readonly)
Returns the value of attribute highrisk_special_prefix_page.
194 195 196 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb', line 194 def highrisk_special_prefix_page @highrisk_special_prefix_page end |
Instance Method Details
#each ⇒ Object
212 213 214 215 216 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb', line 212 def each @highrisk_special_prefix_page.each do |record| yield record end end |
#to_s ⇒ Object
218 219 220 |
# File 'lib/twilio-ruby/rest/voice/v1/dialing_permissions/country/highrisk_special_prefix.rb', line 218 def to_s '<Twilio::REST::Voice::V1PageMetadata>'; end |