Sha256: 1889eb97bece08f9680461a91bb81a091b731bb81f1f512572746d458e4b6dac
Contents?: true
Size: 901 Bytes
Versions: 1
Compression:
Stored size: 901 Bytes
Contents
module PivotalTracker class Iteration include HappyMapper 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 def done(project) array = parse(Client.connection["projects/#{project.id}/iterations/done"].get) array.first if array end def backlog(project) array = parse(Client.connection["projects/#{project.id}/iterations/backlog"].get) array.first if array end end element :id, Integer element :number, Integer element :start, DateTime element :finish, DateTime has_many :stories, Story end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pivotal-tracker-0.1.2 | lib/pivotal-tracker/iteration.rb |