Go back to the company in person, take your sheets where it showed that you were showing up for classes. Then discuss, WHY they are taking this legal action against you.
If you were doing everything that was required of you and you missed no classes, then they cannot take legal action against...