Class: Harvesting::Models::Task

Inherits:
Base
  • Object
show all
Defined in:
lib/harvesting/models/task.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes, #client

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

#pathObject



13
14
15
# File 'lib/harvesting/models/task.rb', line 13

def path
  id.nil? ? "tasks" : "tasks/#{id}"
end