module Teamwork::Client::Timer
Public Instance Methods
delete_time_entry(id)
click to toggle source
DELETE a single time entry Return boolean
# File lib/teamwork/client/timer.rb, line 34 def delete_time_entry(id) send(:delete, "time_entries/#{id}") end
time_entries(options = {})
click to toggle source
GET recent time entries options:
page: UnsignedInt fromdate: YYYYMMDD fromtime: HH:MM todate: YYYYMMDD totime: HH:MM sortorder: (ASC, DESC) (defaults to ascending order by date (oldest to newest))
Return [Teamwork::Thing]
# File lib/teamwork/client/timer.rb, line 15 def time_entries(options = {}) objects_from_response(:get, "time_entries", "time-entries", options) end
time_entry(id)
click to toggle source
GET a single time entry Return Teamwork::Thing
# File lib/teamwork/client/timer.rb, line 22 def time_entry(id) object_from_response(:get, "time_entries/#{id}", "time-entry") end
update_time_entry(options = {})
click to toggle source
PUT a single time entry Return Teamwork::Thing
# File lib/teamwork/client/timer.rb, line 28 def update_time_entry(options = {}) object_from_response(:put, "time_entries/#{id}", "time-entry", "time-entry" => options) end