Module: Worksection::Client::GettingData
- Included in:
- Worksection::Client
- Defined in:
- lib/worksection/modules/getting_data.rb
Instance Method Summary collapse
- #get_all_tasks ⇒ Object
- #get_comments(project_id, task_id) ⇒ Object
- #get_priority ⇒ Object
- #get_projects ⇒ Object
- #get_task(project_id, task_id) ⇒ Object
- #get_tasks(project_id) ⇒ Object
- #get_timemoney ⇒ Object
- #get_users ⇒ Object
Instance Method Details
#get_all_tasks ⇒ Object
10 11 12 13 |
# File 'lib/worksection/modules/getting_data.rb', line 10 def get_all_tasks url = URI("https://#{@domain}/api/admin/?action=get_all_tasks&hash=#{to_md5(__method__.to_s)}") perform_request(url) end |
#get_comments(project_id, task_id) ⇒ Object
42 43 44 45 46 |
# File 'lib/worksection/modules/getting_data.rb', line 42 def get_comments(project_id, task_id) page = "/project/#{project_id}/#{task_id}/" url = URI("https://#{@domain}/api/admin/?action=get_comments&page=#{page}&hash=#{to_md5(__method__.to_s, page)}") perform_request(url) end |
#get_priority ⇒ Object
16 17 18 19 |
# File 'lib/worksection/modules/getting_data.rb', line 16 def get_priority url = URI("https://#{@domain}/api/admin/?action=get_priority&hash=#{to_md5(__method__.to_s)}") perform_request(url) end |
#get_projects ⇒ Object
4 5 6 7 |
# File 'lib/worksection/modules/getting_data.rb', line 4 def get_projects url = URI("https://#{@domain}/api/admin/?action=get_projects&hash=#{to_md5(__method__.to_s)}") perform_request(url) end |
#get_task(project_id, task_id) ⇒ Object
22 23 24 25 26 |
# File 'lib/worksection/modules/getting_data.rb', line 22 def get_task(project_id, task_id) page = "/project/#{project_id}/#{task_id}/" url = URI("https://#{@domain}/api/admin/?action=get_task&page=#{page}&hash=#{to_md5(__method__.to_s, page)}") perform_request(url) end |
#get_tasks(project_id) ⇒ Object
29 30 31 32 33 |
# File 'lib/worksection/modules/getting_data.rb', line 29 def get_tasks(project_id) page = "/project/#{project_id}" url = URI("https://#{@domain}/api/admin/?action=get_tasks&page=#{page}&hash=#{to_md5(__method__.to_s, page)}") perform_request(url) end |
#get_timemoney ⇒ Object
36 37 38 39 |
# File 'lib/worksection/modules/getting_data.rb', line 36 def get_timemoney url = URI("https://#{@domain}/api/admin/?action=get_timemoney&hash=#{to_md5(__method__.to_s)}") perform_request(url) end |
#get_users ⇒ Object
49 50 51 52 |
# File 'lib/worksection/modules/getting_data.rb', line 49 def get_users url = URI("https://#{@domain}/api/admin/?action=get_users&hash=#{to_md5(__method__.to_s)}") perform_request(url) end |