Method: Plivo::Resources::ApplicationInterface#each
- Defined in:
- lib/plivo/resources/applications.rb
#each ⇒ Object
194 195 196 197 198 199 200 201 202 |
# File 'lib/plivo/resources/applications.rb', line 194 def each offset = 0 loop do app_list = list(offset: offset) app_list[:objects].each { |app| yield app } offset += 20 return unless app_list.length == 20 end end |