class Harvesting::Models::ProjectTaskAssignment

A task assignment record from your Harvest account.

For more information: help.getharvest.com/api-v2/projects-api/projects/task-assignments/

Public Instance Methods

path() click to toggle source
# File lib/harvesting/models/project_task_assignment.rb, line 18
def path
  base_url = "projects/#{project.id}/task_assignments"
  id.nil? ? base_url : "#{base_url}/#{id}"
end
to_hash() click to toggle source

def project_id

# TODO: handle case where project's id is part of json object
@attributes["project_id"]

end

Calls superclass method Harvesting::Models::Base#to_hash
# File lib/harvesting/models/project_task_assignment.rb, line 28
def to_hash
  { project_id: project.id, task_id: task.id }.merge(super)
end