SAN FRANCISCO — A federal judge has ruled Lyft drivers cannot bring class wage-and-hour claims against the company, in an order likely to set up the issue for appeal.

Plaintiffs sought to represent a nationwide class of drivers they claim were misclassified as contractors and denied minimum wage and other rights. But the two named plaintiffs drove for the ride-share company exclusively in California and are seeking judgment under California employment laws. Therefore, they cannot represent drivers in other states, U.S. District Judge Vince Chhabria ruled Thursday in the Northern District of California.