class Harvesting::Models::TimeEntry

A time entry record from your Harvest account.

For more information: help.getharvest.com/api-v2/timesheets-api/timesheets/time-entries/

Public Instance Methods

path() click to toggle source
# File lib/harvesting/models/time_entry.rb, line 36
def path
  @attributes['id'].nil? ? "time_entries" : "time_entries/#{@attributes['id']}"
end
to_hash() click to toggle source
Calls superclass method Harvesting::Models::Base#to_hash
# File lib/harvesting/models/time_entry.rb, line 40
def to_hash
  { project_id: project.id, task_id: task.id, user_id: user.id }.merge(super)
end