Method: GoodData::Schedule#executions
- Defined in:
- lib/gooddata/models/schedule.rb
#executions ⇒ Array
Returns enumerator of executions
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 |
# File 'lib/gooddata/models/schedule.rb', line 325 def executions return nil unless @json url = @json['schedule']['links']['executions'] Enumerator.new do |y| loop do res = client.get url res['executions']['paging']['next'] res['executions']['items'].each do |execution| y << client.create(Execution, execution, :project => project) end url = res['executions']['paging']['next'] break unless url end end end |