class Backend::Api::Schema::Vote

Overview

Vote model

Included Modules

Defined in:

backend/api/schema/vote.cr

Constructors

Instance Method Summary

Constructor Detail

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

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

Instance Method Detail

def id : Int32 #

Vote's ID


def student(context : Context) : Student #

Student who voted


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

Teacher votes for student