Class: Megaplan::Project

Inherits:
Api
  • Object
show all
Defined in:
lib/megaplan/project.rb

Instance Attribute Summary

Attributes inherited from Api

#endpoint, #login, #password

Class Method Summary collapse

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/project.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/project.rb', line 15

def available_actions(client, query = {})
  custom_get(client, class_endpoint + "availableActions.api", query)
end

.available_actions_for_list(client, query = {}) ⇒ Object



19
20
21
# File 'lib/megaplan/project.rb', line 19

def available_actions_for_list(client, query = {})
  custom_get(client, class_endpoint + "availableActionsForList.api", query)
end

.can_create(client) ⇒ Object



23
24
25
# File 'lib/megaplan/project.rb', line 23

def can_create(client)
  custom_get(client, class_endpoint + "canCreate.api")
end

.class_endpointObject



7
8
9
# File 'lib/megaplan/project.rb', line 7

def class_endpoint
  "/BumsProjectApiV01/Project/"
end

.convert(client, query = {}) ⇒ Object



27
28
29
# File 'lib/megaplan/project.rb', line 27

def convert(client, query = {})
  custom_post(client, class_endpoint + "convert.api", query)
end

.save_auditors(client, query = {}) ⇒ Object



31
32
33
# File 'lib/megaplan/project.rb', line 31

def save_auditors(client, query = {})
  custom_post(client, class_endpoint + "saveAuditors.api", query)
end

.save_executors(client, query = {}) ⇒ Object



35
36
37
# File 'lib/megaplan/project.rb', line 35

def save_executors(client, query = {})
  custom_post(client, class_endpoint + "saveExecutors.api", query)
end