class PayrollHero::Api::V4::Leaves

Leaves Endpoint

Public Instance Methods

create(attributes) click to toggle source

Creates a leave record.

@param [Hash] attributes - Attributes of the Leave to be created. @return [Hashie::Mash]

# File lib/payroll_hero/api/v4/leaves.rb, line 10
def create(attributes)
  client.post("/api/v4/leaves", attributes)
end
destroy(id, **params) click to toggle source
# File lib/payroll_hero/api/v4/leaves.rb, line 14
def destroy(id, **params)
  client.delete("/api/v4/leaves/#{id}", params)
end