Method: Twilio::REST::Preview::HostedNumbers::AuthorizationDocumentList#each
- Defined in:
- lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb
#each ⇒ Object
When passed a block, yields AuthorizationDocumentInstance records from the API. This operation lazily loads records as efficiently as possible until the limit is reached.
197 198 199 200 201 202 203 204 205 |
# File 'lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb', line 197 def each limits = @version.read_limits page = self.page(page_size: limits[:page_size], ) @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit]).each {|x| yield x} end |