Sha256: 31d10cdde6eb473321096563d6beedd82c6df3a38af8c93577fa5da90e78bc07

Contents?: true

Size: 480 Bytes

Versions: 10

Compression:

Stored size: 480 Bytes

Contents

module Clubhouse
	class Milestone < ClubhouseResource
		def self.properties
			[
				:categories, :completed, :completed_at, :completed_at_override, :created_at, :description, :entity_type,
				:id, :name, :position, :started, :started_at, :started_at_override, :state, :updated_at
			]
		end

		def self.api_url
			'milestones'
		end

		def epics
			@client.epics.select { |e| e.milestone_id == @id }			
		end

		def stories
			epics.collect(&:stories).reduce(:+)
		end
	end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
clubhouse2-1.0.11 lib/clubhouse2/milestone.rb
clubhouse2-1.0.10 lib/clubhouse2/milestone.rb
clubhouse2-1.0.8 lib/clubhouse2/milestone.rb
clubhouse2-1.0.7 lib/clubhouse2/milestone.rb
clubhouse2-1.0.6 lib/clubhouse2/milestone.rb
clubhouse2-1.0.5 lib/clubhouse2/milestone.rb
clubhouse2-1.0.4 lib/clubhouse2/milestone.rb
clubhouse2-1.0.3 lib/clubhouse2/milestone.rb
clubhouse2-0.0.2 lib/clubhouse2/milestone.rb
clubhouse2-0.0.1 lib/clubhouse2/milestone.rb