Class: Harvesting::Models::Task
- Defined in:
- lib/harvesting/models/task.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
attributed, #create, #initialize, #save, #to_hash, #update
Constructor Details
This class inherits a constructor from Harvesting::Models::Base
Instance Method Details
#path ⇒ Object
13 14 15 |
# File 'lib/harvesting/models/task.rb', line 13 def path id.nil? ? "tasks" : "tasks/#{id}" end |