MoveCardAccordingToReview
Inherits ValidateObjectBelongsToUser < Avram::Operation < Avram::Callbacks < Avram::ParamKeyOverride < Avram::OperationErrors < Avram::Validations < Avram::DefineAttribute < Avram::NeedyInitializer < Reference < Object
Constants
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
Sourcebefore_run
Sourcecard_id
Sourcedeck_id
Sourceis_correct
Sourceleitner_box_id
Sourcerun
Sourceset_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
SourceMacros
param_key(key)