class

MoveCardAccordingToReview

Inherits ValidateObjectBelongsToUser < Avram::Operation < Avram::Callbacks < Avram::ParamKeyOverride < Avram::OperationErrors < Avram::Validations < Avram::DefineAttribute < Avram::NeedyInitializer < Reference < Object

Constants

ATTRIBUTES = [is_correct : Bool, user_id : Int64, leitner_box_id : Int32, deck_id : Int32, card_id : Int32] of Nil
OPERATION_NEEDS = [] of Nil

Constructors

new(params : Avram::Paramable, is_correct : Bool | Avram::Nothing = Avram::Nothing.new, user_id : Int64 | Avram::Nothing = Avram::Nothing.new, leitner_box_id : Int32 | Avram::Nothing = Avram::Nothing.new, deck_id : Int32 | Avram::Nothing = Avram::Nothing.new, card_id : Int32 | Avram::Nothing = Avram::Nothing.new)

This is called at the end so @type will be of the subclass, and not the parent abstract class.

new(is_correct : Bool | Avram::Nothing = Avram::Nothing.new, user_id : Int64 | Avram::Nothing = Avram::Nothing.new, leitner_box_id : Int32 | Avram::Nothing = Avram::Nothing.new, deck_id : Int32 | Avram::Nothing = Avram::Nothing.new, card_id : Int32 | Avram::Nothing = Avram::Nothing.new)

This is called at the end so @type will be of the subclass, and not the parent abstract class.

Instance methods

attributes
Source
before_run
Source
card_id
Source
deck_id
Source
is_correct
Source
leitner_box_id
Source
set_attributes(is_correct : Bool | Avram::Nothing = Avram::Nothing.new, user_id : Int64 | Avram::Nothing = Avram::Nothing.new, leitner_box_id : Int32 | Avram::Nothing = Avram::Nothing.new, deck_id : Int32 | Avram::Nothing = Avram::Nothing.new, card_id : Int32 | Avram::Nothing = Avram::Nothing.new)

This is called at the end so @type will be of the subclass, and not the parent abstract class.

user_id
Source

Macros

param_key(key)