Class: PayrollHero::Api::V3::DaySchedules
- Defined in:
- lib/payroll_hero/api/v3/day_schedules.rb
Overview
DaySchedules Endpoint
Instance Attribute Summary
Attributes inherited from BaseGroup
Instance Method Summary collapse
-
#list(page: nil, per_page: nil, start_date: nil, end_date: nil, permissions: false, breaks: false, worksite_id: nil, excluded_worksite_id: nil, employee_id: nil) ⇒ Hashie::Mash
implements the interface to the DaySchedules List endpoint.
Methods inherited from BaseGroup
Constructor Details
This class inherits a constructor from PayrollHero::Api::BaseGroup
Instance Method Details
#list(page: nil, per_page: nil, start_date: nil, end_date: nil, permissions: false, breaks: false, worksite_id: nil, excluded_worksite_id: nil, employee_id: nil) ⇒ Hashie::Mash
implements the interface to the DaySchedules List endpoint
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/payroll_hero/api/v3/day_schedules.rb', line 19 def list(page: nil, per_page: nil, start_date: nil, end_date: nil, permissions: false, breaks: false, worksite_id: nil, excluded_worksite_id: nil, employee_id: nil) params = { page: page, per_page: per_page, start_date: start_date, end_date: end_date, permissions: , breaks: breaks, worksite_id: worksite_id, excluded_worksite_id: excluded_worksite_id, employee_id: employee_id, } remove_nil_values_from!(params) client.get("/api/v3/day_schedules", params) end |