Class: Harvest::API::TimeEntry
- Includes:
- Behavior::Crud
- Defined in:
- lib/harvest/api/time_entry.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods included from Behavior::Crud
#all, #create, #delete, #find, #update
Methods inherited from Base
Constructor Details
This class inherits a constructor from Harvest::API::Base
Instance Method Details
#restart(time_entry) ⇒ Object
13 14 15 16 |
# 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) ⇒ Object
8 9 10 11 |
# 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 |