Module: Teamlab::ProjectsContacts

Included in:
Project
Defined in:
lib/teamlab/modules/projects/projects_contacts.rb

Overview

Module for projects contacts methods

Instance Method Summary collapse

Instance Method Details

#add_project_contact(project_id, contact_id) ⇒ Object



10
11
12
# File 'lib/teamlab/modules/projects/projects_contacts.rb', line 10

def add_project_contact(project_id, contact_id)
  @request.post([project_id.to_s, 'contact'], contactId: contact_id)
end

#delete_project_contact(project_id, contact_id) ⇒ Object



14
15
16
# File 'lib/teamlab/modules/projects/projects_contacts.rb', line 14

def delete_project_contact(project_id, contact_id)
  @request.delete([project_id.to_s, 'contact'], contactId: contact_id)
end

#get_projects_for_contact(contact_id) ⇒ Object



6
7
8
# File 'lib/teamlab/modules/projects/projects_contacts.rb', line 6

def get_projects_for_contact(contact_id)
  @request.get(['contact', contact_id.to_s])
end