Class: ClinchTalent::Base

Inherits:
JsonApiClient::Resource
  • Object
show all
Defined in:
lib/clinch_talent/base.rb

Direct Known Subclasses

Candidate

Class Method Summary collapse

Class Method Details

.config(access_id, secret, options = {}) ⇒ Object



3
4
5
6
7
8
# File 'lib/clinch_talent/base.rb', line 3

def self.config(access_id, secret, options = {})
  self.site = options[:site] || 'https://api.clinchtalent.com/v1/'
  self.connection do |connection|
    connection.use HmacSigningMiddleware, {access_id: access_id, secret: secret}
  end
end