Sha256: a3080e9ccc4624f4476a3ae97a0c9b32702c252f34b4d9881d401051c20df82a
Contents?: true
Size: 1022 Bytes
Versions: 6
Compression:
Stored size: 1022 Bytes
Contents
module PivotalTracker class Project include HappyMapper class << self def all @found = parse(Client.connection['/projects'].get) end def find(id) if @found @found.detect { |document| document.id == id } else parse(Client.connection["/projects/#{id}"].get) end end end element :id, Integer element :name, String element :week_start_day, String element :point_scale, String element :week_start_day, String element :velocity_scheme, String element :iteration_length, Integer element :initial_velocity, Integer element :current_velocity, Integer element :last_activity_at, DateTime def activities @activities ||= Proxy.new(self, Activity) end def iterations @iterations ||= Proxy.new(self, Iteration) end def stories @stories ||= Proxy.new(self, Story) end def memberships @memberships ||= Proxy.new(self, Membership) end end end
Version data entries
6 entries across 6 versions & 1 rubygems