Module: WorkSnaps::API::TimeEntries
- Includes:
- Utils
- Defined in:
- lib/worksnaps/api/time_entries.rb
Constant Summary
Constants included from Utils
Instance Method Summary collapse
- #create_task_assignment(p_id, assignment_info) ⇒ Object
- #delete_task_assignment(p_id, assignment_id) ⇒ Object
- #screen_short(p_id, entry_id) ⇒ Object
- #task_assignments(p_id) ⇒ Object
- #time_entry(p_id, entry_id) ⇒ Object
Instance Method Details
#create_task_assignment(p_id, assignment_info) ⇒ Object
9 10 11 |
# File 'lib/worksnaps/api/time_entries.rb', line 9 def create_task_assignment(p_id, assignment_info) object_from_response(WorkSnaps::TaskAssignment, :post, "/api/projects/#{p_id}/task_assignments.xml", {:task_assignment => assignment_info}) end |
#delete_task_assignment(p_id, assignment_id) ⇒ Object
13 14 15 |
# File 'lib/worksnaps/api/time_entries.rb', line 13 def delete_task_assignment(p_id, assignment_id) object_from_response(WorkSnaps::TaskAssignment, :delete, "/api/projects/#{p_id}/task_assignments/#{assignment_id}.xml") end |
#screen_short(p_id, entry_id) ⇒ Object
21 22 23 |
# File 'lib/worksnaps/api/time_entries.rb', line 21 def screen_short(p_id, entry_id) object_from_response(WorkSnaps::TaskAssignment, :get, "/api/projects/#{p_id}/time_entries/#{entry_id}.xml?full_resolution_url=1") end |
#task_assignments(p_id) ⇒ Object
25 26 27 |
# File 'lib/worksnaps/api/time_entries.rb', line 25 def task_assignments(p_id) objects_from_response(WorkSnaps::TaskAssignment, :get, "/api/projects/#{p_id}/task_assignments.xml") end |
#time_entry(p_id, entry_id) ⇒ Object
17 18 19 |
# File 'lib/worksnaps/api/time_entries.rb', line 17 def time_entry(p_id, entry_id) object_from_response(WorkSnaps::TaskAssignment, :get, "/api/projects/#{p_id}/time_entries/#{entry_id}.xml") end |