lib/pivotal-tracker/iteration.rb in pivotal-tracker-0.1.2 vs lib/pivotal-tracker/iteration.rb in pivotal-tracker-0.1.3

- old
+ new

@@ -11,17 +11,17 @@ def current(project) array = parse(Client.connection["projects/#{project.id}/iterations/current"].get) array.first if array end - def done(project) - array = parse(Client.connection["projects/#{project.id}/iterations/done"].get) - array.first if array + def done(project, options={}) + params = PivotalTracker.encode_options(options) + parse(Client.connection["/projects/#{project.id}/iterations/done#{params}"].get) end - def backlog(project) - array = parse(Client.connection["projects/#{project.id}/iterations/backlog"].get) - array.first if array + def backlog(project, options={}) + params = PivotalTracker.encode_options(options) + parse(Client.connection["/projects/#{project.id}/iterations/backlog#{params}"].get) end end element :id, Integer element :number, Integer