lib/pivotal-tracker/iteration.rb in pivotal-tracker-0.5.10 vs lib/pivotal-tracker/iteration.rb in pivotal-tracker-0.5.12
- old
+ new
@@ -5,11 +5,11 @@
class << self
def all(project, options={})
params = PivotalTracker.encode_options(options)
parse(Client.connection["/projects/#{project.id}/iterations#{params}"].get)
end
-
+
def current(project)
array = parse(Client.connection["projects/#{project.id}/iterations/current"].get)
array.first if array
end
@@ -20,21 +20,21 @@
def backlog(project, options={})
params = PivotalTracker.encode_options(options)
parse(Client.connection["/projects/#{project.id}/iterations/backlog#{params}"].get)
end
-
+
def current_backlog(project, options={})
params = PivotalTracker.encode_options(options)
parse(Client.connection["/projects/#{project.id}/iterations/current_backlog#{params}"].get)
- end
+ end
end
-
+
element :id, Integer
element :number, Integer
element :start, DateTime
element :finish, DateTime
element :team_strength, Float
- has_many :stories, Story
+ has_many :stories, Story, :xpath => './/stories'
end
end