Method: Twilio::REST::Messaging::V1::ServiceList#each
- Defined in:
- lib/twilio-ruby/rest/messaging/v1/service.rb
#each ⇒ Object
When passed a block, yields ServiceInstance records from the API. This operation lazily loads records as efficiently as possible until the limit is reached.
245 246 247 248 249 250 251 252 253 |
# File 'lib/twilio-ruby/rest/messaging/v1/service.rb', line 245 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 |