Class: Megaplan::Task
- Inherits:
-
Api
- Object
- Api
- Megaplan::Task
show all
- Defined in:
- lib/megaplan/task.rb
Instance Attribute Summary
Attributes inherited from Api
#endpoint, #login, #password
Class Method Summary
collapse
-
.action(client, query = {}) ⇒ Object
-
.available_actions(client, query = {}) ⇒ Object
-
.check_delegate(client, query = {}) ⇒ Object
-
.class_endpoint ⇒ Object
-
.convert(client, query = {}) ⇒ Object
-
.deadline_action(client, query = {}) ⇒ Object
-
.deadline_change(client, query = {}) ⇒ Object
-
.delegate(client, query = {}) ⇒ Object
-
.employees_to_delegate(client, query = {}) ⇒ Object
-
.save_auditors(client, query = {}) ⇒ Object
-
.save_executors(client, query = {}) ⇒ Object
-
.super_projects(client, query = {}) ⇒ Object
-
.super_tasks(client, query = {}) ⇒ Object
Methods inherited from Api
#auth_params, #auth_path, #authenticate, bad_response, card, check_response, create, #create_signature, custom_get, custom_post, delete, edit, find, #get_headers, #initial_path, #initialize, list, make_get_req, make_post_req, parsed_body, query_path, resource_path, save, to_query
Constructor Details
This class inherits a constructor from Megaplan::Api
Class Method Details
.action(client, query = {}) ⇒ Object
11
12
13
|
# File 'lib/megaplan/task.rb', line 11
def action(client, query = {})
custom_get(client, class_endpoint + "action.api", query)
end
|
.available_actions(client, query = {}) ⇒ Object
15
16
17
|
# File 'lib/megaplan/task.rb', line 15
def available_actions(client, query = {})
custom_get(client, class_endpoint + "availableActions.api", query)["actions"] rescue []
end
|
.check_delegate(client, query = {}) ⇒ Object
39
40
41
|
# File 'lib/megaplan/task.rb', line 39
def check_delegate(client, query = {})
custom_post(client, class_endpoint + "checkDelegate.api", query)
end
|
.class_endpoint ⇒ Object
7
8
9
|
# File 'lib/megaplan/task.rb', line 7
def class_endpoint
"/BumsTaskApiV01/Task/"
end
|
.convert(client, query = {}) ⇒ Object
55
56
57
|
# File 'lib/megaplan/task.rb', line 55
def convert(client, query = {})
custom_post(client, class_endpoint + "convert.api", query)
end
|
.deadline_action(client, query = {}) ⇒ Object
23
24
25
|
# File 'lib/megaplan/task.rb', line 23
def deadline_action(client, query = {})
custom_post(client, class_endpoint + "deadlineAction.api", query)
end
|
.deadline_change(client, query = {}) ⇒ Object
19
20
21
|
# File 'lib/megaplan/task.rb', line 19
def deadline_change(client, query = {})
custom_post(client, class_endpoint + "deadlineChange.api", query)
end
|
.delegate(client, query = {}) ⇒ Object
35
36
37
|
# File 'lib/megaplan/task.rb', line 35
def delegate(client, query = {})
custom_post(client, class_endpoint + "delegate.api", query)
end
|
.employees_to_delegate(client, query = {}) ⇒ Object
43
44
45
|
# File 'lib/megaplan/task.rb', line 43
def employees_to_delegate(client, query = {})
custom_post(client, class_endpoint + "employeesToDelegate.api", query)
end
|
.save_auditors(client, query = {}) ⇒ Object
31
32
33
|
# File 'lib/megaplan/task.rb', line 31
def save_auditors(client, query = {})
custom_post(client, class_endpoint + "saveAuditors.api", query)
end
|
.save_executors(client, query = {}) ⇒ Object
27
28
29
|
# File 'lib/megaplan/task.rb', line 27
def save_executors(client, query = {})
custom_post(client, class_endpoint + "saveExecutors.api", query)
end
|
.super_projects(client, query = {}) ⇒ Object
51
52
53
|
# File 'lib/megaplan/task.rb', line 51
def super_projects(client, query = {})
custom_post(client, class_endpoint + "superProjects.api", query)["projects"] rescue []
end
|
.super_tasks(client, query = {}) ⇒ Object
47
48
49
|
# File 'lib/megaplan/task.rb', line 47
def super_tasks(client, query = {})
custom_post(client, class_endpoint + "superTasks.api", query)
end
|