lib/asana/resource_includes/events.rb in asana-0.1.2 vs lib/asana/resource_includes/events.rb in asana-0.2.0

- old
+ new

@@ -75,13 +75,13 @@ # If the sync token is too old (which may happen from time to time) # the API will return a `412 Precondition Failed` error, and include # a fresh `sync` token in the response. def poll rate_limiting do - body = @client.get('/events', - params: params, - options: @options).body - @sync = body['sync'] + body = @client.get('/events', + params: params, + options: @options).body + @sync = body['sync'] @events += body.fetch('data', []).map do |event_data| Event.new(event_data, client: @client) end end end