lib/harvesting/models/time_entry.rb in harvesting-0.3.0 vs lib/harvesting/models/time_entry.rb in harvesting-0.4.0

- old
+ new

@@ -1,7 +1,10 @@ module Harvesting module Models + # A time entry record from your Harvest account. + # + # For more information: https://help.getharvest.com/api-v2/timesheets-api/timesheets/time-entries/ class TimeEntry < HarvestRecord attributed :id, :spent_date, :hours, :notes, @@ -18,17 +21,17 @@ :billable_rate, :cost_rate, :invoice, :external_reference, :created_at, - :updated_at, - :user_assignment # temporarily return the hash itself until the model is added + :updated_at modeled project: Project, user: User, task: Task, client: Client, - task_assignment: TaskAssignment + task_assignment: ProjectTaskAssignment, + user_assignment: ProjectUserAssignment def path @attributes['id'].nil? ? "time_entries" : "time_entries/#{@attributes['id']}" end