Class: Bob::Employee::TimeOff
- Defined in:
- lib/bob/api/employee/time_off.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
.balance(employee_id:, policy_type:, date:) ⇒ Object
6 7 8 9 |
# File 'lib/bob/api/employee/time_off.rb', line 6 def self.balance(employee_id:, policy_type:, date:) response = get("timeoff/employees/#{employee_id}/balance", { policyType: policy_type, date: }) BaseParser.new(response).fields end |