class Backend::Api::Schema::TeacherVote

Overview

Teacher vote model

Included Modules

Defined in:

backend/api/schema/teacher_vote.cr

Constructors

Instance Method Summary

Constructor Detail

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

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

Instance Method Detail

def id : Int32 #

Teacher vote's ID


def priority : Int32 #

Teacher vote's priority


def teacher : Teacher #

Voted teacher


def vote(context : Context) : Vote #

Student's vote