Method: Twilio::REST::Intelligence::V2::CustomOperatorList#stream
- Defined in:
- lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb
#stream(availability: :unset, language_code: :unset, limit: nil, page_size: nil) ⇒ Enumerable
Streams Instance records from the API as an Enumerable. This operation lazily loads records as efficiently as possible until the limit is reached.
100 101 102 103 104 105 106 107 108 109 |
# File 'lib/twilio-ruby/rest/intelligence/v2/custom_operator.rb', line 100 def stream(availability: :unset, language_code: :unset, limit: nil, page_size: nil) limits = @version.read_limits(limit, page_size) page = self.page( availability: availability, language_code: language_code, page_size: limits[:page_size], ) @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit]) end |