Spider is a MVC application framework. You can start looking at the Spider::Model::BaseModel documentation.