class Internal::HumanResources::EmployeeService < Internal::ApplicationService
  def initialize(employee, current_user_id)
    @school = employee.school
    @id = employee.id
    @current_user_id = current_user_id
  end

  def call
    RestClient.delete(endpoint, headers.merge(params: { current_user_id: @current_user_id }))
  rescue
  end

  private
    def endpoint
      "#{base_url}/Employee/#{@id}"
    end
end
