Class: PayrollHero::Api::V4::Leaves
- Defined in:
- lib/payroll_hero/api/v4/leaves.rb
Overview
Leaves Endpoint
Instance Attribute Summary
Attributes inherited from BaseGroup
Instance Method Summary collapse
-
#create(attributes) ⇒ Hashie::Mash
Creates a leave record.
- #destroy(id, **params) ⇒ Object
Methods inherited from BaseGroup
Constructor Details
This class inherits a constructor from PayrollHero::Api::BaseGroup
Instance Method Details
#create(attributes) ⇒ Hashie::Mash
Creates a leave record.
10 11 12 |
# File 'lib/payroll_hero/api/v4/leaves.rb', line 10 def create(attributes) client.post("/api/v4/leaves", attributes) end |
#destroy(id, **params) ⇒ Object
14 15 16 |
# File 'lib/payroll_hero/api/v4/leaves.rb', line 14 def destroy(id, **params) client.delete("/api/v4/leaves/#{id}", params) end |