Class: Clubhouse::Task

Inherits:
ClubhouseResource show all
Defined in:
lib/clubhouse2/task.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ClubhouseResource

#api_url, #delete!, #flush, inherited, #initialize, property_filter_create, property_filter_update, #resolve_to_ids, #set_properties, subclass, #update, validate, #value_format

Constructor Details

This class inherits a constructor from Clubhouse::ClubhouseResource

Class Method Details

.api_urlObject



10
11
12
# File 'lib/clubhouse2/task.rb', line 10

def self.api_url
	'tasks'
end

.propertiesObject



3
4
5
6
7
8
# File 'lib/clubhouse2/task.rb', line 3

def self.properties
	[
		:complete, :completed_at, :created_at, :description, :entity_type, :external_id, :id, :mention_ids, :owner_ids,
		:position, :story_id, :updated_at
	]
end

Instance Method Details

#to_hObject



14
15
16
# File 'lib/clubhouse2/task.rb', line 14

def to_h
	super.reject { |k, v| [ :story_id ].include? k }
end