Class: Bob::Employee::Payroll

Inherits:
API
  • Object
show all
Defined in:
lib/bob/api/employee/payroll.rb

Constant Summary

Constants inherited from API

API::BASE_URL, API::SANDBOX_URL

Class Method Summary collapse

Methods inherited from API

build_url, create_csv, delete, get, headers, post, post_file, post_media, put

Class Method Details

.all(params = { showInactive: false }) ⇒ Array<PayrollHistory>

Fetches all payroll histories.

Parameters:

  • params (Hash) (defaults to: { showInactive: false })

    Optional parameters for the request.

Returns:

  • (Array<PayrollHistory>)

    An array of payroll history records.



9
10
11
12
# File 'lib/bob/api/employee/payroll.rb', line 9

def self.all(params = { showInactive: false })
  response = get('payroll/history', params)
  PayrollParser.new(response).payroll_histories
end