Sha256: a30318f7a240e7bd6b2651a3800df19930e053d147a9c076b1ec59abd5b8daa2

Contents?: true

Size: 557 Bytes

Versions: 8

Compression:

Stored size: 557 Bytes

Contents

module Paychex
  class Client
    module PayRates
      # Get a list of compensation rates for a worker
      def pay_rates(worker_id)
        get("workers/#{worker_id}/compensation/payrates")
      end

      # Get a worker's specific compensation rate
      def pay_rate(worker_id, pay_rate_id)
        get("workers/#{worker_id}/compensation/payrates/#{pay_rate_id}")
      end

      # Add a worker's pay rate
      def add_pay_rate(worker_id, options = {})
        post("workers/#{worker_id}/compensation/payrates", options)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
paychex-0.3.3 lib/paychex/client/pay_rates.rb
paychex-0.3.2 lib/paychex/client/pay_rates.rb
paychex-0.3.1 lib/paychex/client/pay_rates.rb
paychex-0.3.0 lib/paychex/client/pay_rates.rb
paychex-0.2.2 lib/paychex/client/pay_rates.rb
paychex-0.2.1 lib/paychex/client/pay_rates.rb
paychex-0.2.0 lib/paychex/client/pay_rates.rb
paychex-0.1.1 lib/paychex/client/pay_rates.rb