Sha256: e10f7854153b8d6cf542f392af1f1e04458e44e7d32cf11c434e51d27a31e12a

Contents?: true

Size: 346 Bytes

Versions: 10

Compression:

Stored size: 346 Bytes

Contents

module Clubhouse
	class Label < ClubhouseResource
		def self.properties
			[ :archived, :color, :created_at, :entity_type, :external_id, :id, :name, :stats, :updated_at ]
		end

		def self.api_url
			'labels'
		end

		def stories
			@client.projects.collect(&:stories).reduce(:+).select { |s| s.labels.collect(&:id).include? @id }
		end
	end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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