class LogInUser
- LogInUser
- Avram::Operation
- Reference
- Object
Included Modules
Defined in:
operations/user_log_in.crConstant Summary
-
ATTRIBUTES =
[email : String, password : String] of Nil
-
OPERATION_NEEDS =
[] of Nil
Constructors
-
.new(params : Avram::Paramable, email : String | Avram::Nothing = Avram::Nothing.new, password : String | 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(email : String | Avram::Nothing = Avram::Nothing.new, password : String | Avram::Nothing = Avram::Nothing.new)
This is called at the end so @type will be of the subclass, and not the parent abstract class.
Class Method Summary
Instance Method Summary
- #attributes
- #password
-
#run
Run validations and yields the operation and the user if valid
-
#set_attributes(email : String | Avram::Nothing = Avram::Nothing.new, password : String | Avram::Nothing = Avram::Nothing.new)
This is called at the end so @type will be of the subclass, and not the parent abstract class.
Macro Summary
Constructor Detail
def self.new(params : Avram::Paramable, email : String | Avram::Nothing = Avram::Nothing.new, password : String | Avram::Nothing = Avram::Nothing.new)
#
This is called at the end so @type will be of the subclass, and not the parent abstract class.
def self.new(email : String | Avram::Nothing = Avram::Nothing.new, password : String | Avram::Nothing = Avram::Nothing.new)
#
This is called at the end so @type will be of the subclass, and not the parent abstract class.
Class Method Detail
Instance Method Detail
def set_attributes(email : String | Avram::Nothing = Avram::Nothing.new, password : String | Avram::Nothing = Avram::Nothing.new)
#
This is called at the end so @type will be of the subclass, and not the parent abstract class.