Sha256: 2f0c93881454bc8190ac2e42a5ff912dc311846f1deb4d7f4a1473dfef30caa4

Contents?: true

Size: 665 Bytes

Versions: 8

Compression:

Stored size: 665 Bytes

Contents

require 'singleton'

module DataComApi

  class BaseApiURI
    include Singleton

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

    def search_contact
      "/rest/searchContact.json"
    end

    def search_company
      "/rest/searchCompany.json"
    end

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

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

    def partner
      "/rest/partner.json"
    end

    def user
      "/rest/user.json"
    end
    
  end

  ApiURI = BaseApiURI.instance

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
data-com-api-0.2.1 lib/data-com-api/api_uri.rb
data-com-api-0.2.0 lib/data-com-api/api_uri.rb
data-com-api-0.1.5 lib/data-com-api/api_uri.rb
data-com-api-0.1.4 lib/data-com-api/api_uri.rb
data-com-api-0.1.3 lib/data-com-api/api_uri.rb
data-com-api-0.1.2 lib/data-com-api/api_uri.rb
data-com-api-0.1.1 lib/data-com-api/api_uri.rb
data-com-api-0.1.0 lib/data-com-api/api_uri.rb