Class: TimestampAPI::Project
- Defined in:
- lib/timestamp_api/models/project.rb
Instance Attribute Summary
Attributes inherited from Model
Instance Method Summary collapse
Methods inherited from Model
Methods included from ModelDefaultAPIMethods
Methods included from ModelRelations
Methods included from ModelAttributes
Methods included from Utils
Constructor Details
This class inherits a constructor from TimestampAPI::Model
Instance Method Details
#enter_time(task_id, day, duration_in_minutes, comment = "") ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/timestamp_api/models/project.rb', line 10 def enter_time(task_id, day, duration_in_minutes, comment = "") TimestampAPI.request(:post, "#{@@api_path}/#{id}/enterTime", {}, { task_id: task_id, day: day.strftime("%FT%T%:z"), time_value: duration_in_minutes, time_unit: "Minutes", comment: comment }).object end |