class Backend::Api::Schema::Teacher

Overview

Teacher model

Included Modules

Defined in:

backend/api/schema/teacher.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_id(id : Int32) : self #

def self.new(model : Db::Teacher) #

Instance Method Detail

def id : Int32 #

Teacher's ID


def max_students : Int32 #

Teacher's max students


def teacher_votes(context : Context) : Array(TeacherVote) #

Students' votes


def user : User #

Teacher's user