Class: DataComApi::BaseApiURI

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/data-com-api/api_uri.rb

Instance Method Summary collapse

Instance Method Details

#company_contact_count(company_id) ⇒ Object



8
9
10
# File 'lib/data-com-api/api_uri.rb', line 8

def company_contact_count(company_id)
  "/rest/companyContactCount/#{ company_id }.json"
end

#contacts(contact_ids) ⇒ Object



20
21
22
# File 'lib/data-com-api/api_uri.rb', line 20

def contacts(contact_ids)
  "/rest/contacts/#{ contact_ids.join(',') }.json"
end

#partnerObject



28
29
30
# File 'lib/data-com-api/api_uri.rb', line 28

def partner
  "/rest/partner.json"
end

#partner_contacts(contact_ids) ⇒ Object



24
25
26
# File 'lib/data-com-api/api_uri.rb', line 24

def partner_contacts(contact_ids)
  "/rest/partnerContacts/#{ contact_ids.join(',') }.json"
end

#search_companyObject



16
17
18
# File 'lib/data-com-api/api_uri.rb', line 16

def search_company
  "/rest/searchCompany.json"
end

#search_contactObject



12
13
14
# File 'lib/data-com-api/api_uri.rb', line 12

def search_contact
  "/rest/searchContact.json"
end

#userObject



32
33
34
# File 'lib/data-com-api/api_uri.rb', line 32

def user
  "/rest/user.json"
end