Class: Clubhouse::Label
Class Method Summary
collapse
Instance Method Summary
collapse
#api_url, #delete!, #flush, inherited, #initialize, property_filter_create, property_filter_update, #resolve_to_ids, #set_properties, subclass, #to_h, #update, validate, #value_format
Class Method Details
.api_url ⇒ Object
7
8
9
|
# File 'lib/clubhouse2/label.rb', line 7
def self.api_url
'labels'
end
|
.properties ⇒ Object
3
4
5
|
# File 'lib/clubhouse2/label.rb', line 3
def self.properties
[ :archived, :color, :created_at, :entity_type, :external_id, :id, :name, :stats, :updated_at ]
end
|
Instance Method Details
#stories ⇒ Object
11
12
13
|
# File 'lib/clubhouse2/label.rb', line 11
def stories
@client.projects.collect(&:stories).reduce(:+).select { |s| s.labels.collect(&:id).include? @id }
end
|