Class: Harvesting::Models::Task
- Inherits:
-
HarvestRecord
- Object
- Base
- HarvestRecord
- Harvesting::Models::Task
- Defined in:
- lib/harvesting/models/task.rb
Overview
A task record from your Harvest account.
For more information: help.getharvest.com/api-v2/tasks-api/tasks/tasks/
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from HarvestRecord
Methods inherited from Base
#create, #delete, #fetch, get, #initialize, #save, #to_hash, #update
Constructor Details
This class inherits a constructor from Harvesting::Models::Base
Instance Method Details
#path ⇒ Object
16 17 18 |
# File 'lib/harvesting/models/task.rb', line 16 def path @attributes['id'].nil? ? "tasks" : "tasks/#{@attributes['id']}" end |