Module: Paychex::Client::PayRates

Included in:
Paychex::Client
Defined in:
lib/paychex/client/pay_rates.rb

Instance Method Summary collapse

Instance Method Details

#add_pay_rate(worker_id, options = {}) ⇒ Object

Add a worker’s pay rate



15
16
17
# File 'lib/paychex/client/pay_rates.rb', line 15

def add_pay_rate(worker_id, options = {})
  post("workers/#{worker_id}/compensation/payrates", options)
end

#pay_rate(worker_id, pay_rate_id) ⇒ Object

Get a worker’s specific compensation rate



10
11
12
# File 'lib/paychex/client/pay_rates.rb', line 10

def pay_rate(worker_id, pay_rate_id)
  get("workers/#{worker_id}/compensation/payrates/#{pay_rate_id}")
end

#pay_rates(worker_id) ⇒ Object

Get a list of compensation rates for a worker



5
6
7
# File 'lib/paychex/client/pay_rates.rb', line 5

def pay_rates(worker_id)
  get("workers/#{worker_id}/compensation/payrates")
end