Module: WOTC::Client::Payrolls

Included in:
WOTC::Client
Defined in:
lib/wotc/client/payrolls.rb

Overview

Defines methods related to payrolls.

Instance Method Summary collapse

Instance Method Details

#all_payrolls(options = {}) ⇒ Object

Get as list of hours and wages



6
7
8
# File 'lib/wotc/client/payrolls.rb', line 6

def all_payrolls(options={})
  paginate("hours-wages")
end

#create_payroll(options = {}) ⇒ Object

Create a payroll record



11
12
13
# File 'lib/wotc/client/payrolls.rb', line 11

def create_payroll(options={})
  post("hours-wages", options)
end

#update_payroll(payroll_id, options = {}) ⇒ Object

Update a payroll record



22
23
24
# File 'lib/wotc/client/payrolls.rb', line 22

def update_payroll(payroll_id, options={})
  put("hours-wages/#{payroll_id}")
end