class

PasswordReset::SaveOperation

Inherits Avram::SaveOperation < Avram::AddColumnAttributes < Avram::Upsert < Avram::InheritColumnAttributes < Avram::MarkAsFailed < Avram::NestedSaveOperation < Avram::DatabaseValidations < Avram::SaveCallbacks < Avram::AfterCommitCallback < Avram::CallbackHelpers < Avram::NeedyInitializerAndSaveMethods < Avram::ParamKeyOverride < Avram::OperationErrors < Avram::Validations < Avram::DefineAttribute < Reference < Object

Constants

ATTRIBUTES = [] of Nil
COLUMN_ATTRIBUTES = [{name: ip_address, type: String, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: user_id, type: User::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: active_at, type: Time, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: inactive_at, type: Time, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: success, type: Bool, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: token_digest, type: String, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: id, type: Int64, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}] of Nil
OPERATION_NEEDS = [] of Nil

Constructors

new(record : T, params : Avram::Paramable, ip_address : String | Avram::Nothing = IGNORE, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, success : Bool | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

new(params : Avram::Paramable, ip_address : String | Avram::Nothing = IGNORE, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, success : Bool | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

new(record : T, ip_address : String | Avram::Nothing = IGNORE, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, success : Bool | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

new(ip_address : String | Avram::Nothing = IGNORE, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, success : Bool | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

Class methods

create(params, ip_address : String | Avram::Nothing = IGNORE, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, success : Bool | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, &)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

create(ip_address : String | Avram::Nothing = IGNORE, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, success : Bool | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, &)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

create(params : Hash, **named_args, &)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

create!(params, ip_address : String | Avram::Nothing = IGNORE, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, success : Bool | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

create!(ip_address : String | Avram::Nothing = IGNORE, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, success : Bool | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

create!(params : Hash, **named_args)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

update(record : T, with params, ip_address : String | Avram::Nothing = IGNORE, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, success : Bool | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, &)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

update(record : T, ip_address : String | Avram::Nothing = IGNORE, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, success : Bool | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE, &)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

update(record : T, params : Hash, **named_args, &)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

update!(record : T, with params, ip_address : String | Avram::Nothing = IGNORE, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, success : Bool | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

update!(record : T, ip_address : String | Avram::Nothing = IGNORE, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, success : Bool | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

update!(record : T, params : Hash, **named_args)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

Instance methods

active_at
active_at=(_value)
attributes
id
id=(_value)
inactive_at
inactive_at=(_value)
ip_address
ip_address=(_value)
permitted_params
required_attributes
set_active_at_from_param(_value)
set_attributes(ip_address : String | Avram::Nothing = IGNORE, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, success : Bool | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = IGNORE)

@type is not correct in this method, but is in the macro we call below That is why this macro was extracted. We need @type to get the attributes for this SaveOperation

set_id_from_param(_value)
set_inactive_at_from_param(_value)
set_ip_address_from_param(_value)
set_success_from_param(_value)
set_token_digest_from_param(_value)
set_user_id_from_param(_value)
success
success=(_value)
token_digest
token_digest=(_value)
user_id
user_id=(_value)

Macros

param_key(key)