class Harvest::API::TimeEntry

Public Instance Methods

restart(time_entry) click to toggle source
# File lib/harvest/api/time_entry.rb, line 13
def restart(time_entry)
  request(:put, credentials, "#{api_model.api_path}/#{time_entry.id}/restart")
  time_entry.id
end
stop(time_entry) click to toggle source
# File lib/harvest/api/time_entry.rb, line 8
def stop(time_entry)
  request(:put, credentials, "#{api_model.api_path}/#{time_entry.id}/stop")
  time_entry.id
end