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
-
#all_payrolls(options = {}) ⇒ Object
Get as list of hours and wages.
-
#create_payroll(options = {}) ⇒ Object
Create a payroll record.
-
#update_payroll(payroll_id, options = {}) ⇒ Object
Update a payroll record.
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(={}) 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(={}) post("hours-wages", ) 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, ={}) put("hours-wages/#{payroll_id}") end |