Sha256: 71555367870ac7882eb015e585725871d1b6cccda4e56f08b6f8f8e6822d0b57
Contents?: true
Size: 548 Bytes
Versions: 12
Compression:
Stored size: 548 Bytes
Contents
module Peaty class Iteration < Base def stories(options = {}) Array.wrap(self.attributes["stories"]).map do |story| Story.with_connection(self.connection).new(story) end end class << self def element "iteration" end def collection_path(options = {}) "/projects/%i/iterations" % options[:project_id].to_i end def member_path(group, options = {}) "/projects/%i/iterations/%s" % [options[:project_id].to_i, group] end end end end
Version data entries
12 entries across 12 versions & 1 rubygems