class DeleteCustomTaxon
- DeleteCustomTaxon
- CustomTaxon::DeleteOperation
- Avram::DeleteOperation(CustomTaxon)
- Reference
- Object
Defined in:
operations/delete_custom_taxon.crConstant Summary
-
ATTRIBUTES =
[] of Nil
-
COLUMN_ATTRIBUTES =
[{name: taxon_ptr_id, type: UUID, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: is_private, type: Bool, nilable: false, autogenerated: false, value: true, serialized: false, allow_blank: false}, {name: user_id, type: Int32, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: taxon_ptr_id, type: UUID, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: is_private, type: Bool, nilable: false, autogenerated: false, value: true, serialized: false, allow_blank: false}, {name: user_id, type: Int32, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}] of Nil
-
OPERATION_NEEDS =
[] of Nil
Constructors
-
.new(record : T, params : Avram::Paramable, taxon_ptr_id : UUID | Avram::Nothing = IGNORE, is_private : Bool | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE)
This is called at the end so @type will be of the subclass, and not the parent abstract class.
-
.new(record : T, taxon_ptr_id : UUID | Avram::Nothing = IGNORE, is_private : Bool | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE)
This is called at the end so @type will be of the subclass, and not the parent abstract class.
Class Method Summary
-
.delete(record : T, params, taxon_ptr_id : UUID | Avram::Nothing = IGNORE, is_private : Bool | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, &)
This is called at the end so @type will be of the subclass, and not the parent abstract class.
-
.delete(record : T, taxon_ptr_id : UUID | Avram::Nothing = IGNORE, is_private : Bool | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, &)
This is called at the end so @type will be of the subclass, and not the parent abstract class.
-
.delete(record : T, params : Hash, **named_args, &)
This is called at the end so @type will be of the subclass, and not the parent abstract class.
-
.delete!(record : T, params, taxon_ptr_id : UUID | Avram::Nothing = IGNORE, is_private : Bool | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE)
This is called at the end so @type will be of the subclass, and not the parent abstract class.
-
.delete!(record : T, taxon_ptr_id : UUID | Avram::Nothing = IGNORE, is_private : Bool | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE)
This is called at the end so @type will be of the subclass, and not the parent abstract class.
-
.delete!(record : T, params : Hash, **named_args)
This is called at the end so @type will be of the subclass, and not the parent abstract class.
Macro Summary
Instance Method Summary
- #delete_status : OperationStatus
- #delete_status=(delete_status : OperationStatus)
- #params : Avram::Paramable
- #record : CustomTaxon
-
#set_attributes(taxon_ptr_id : UUID | Avram::Nothing = IGNORE, is_private : Bool | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE)
This is called at the end so @type will be of the subclass, and not the parent abstract class.
Instance methods inherited from class CustomTaxon::DeleteOperation
attributes
attributes,
delete_status : OperationStatus
delete_status,
delete_status=(delete_status : OperationStatus)
delete_status=,
is_private
is_private,
is_private=(_value)
is_private=,
params : Avram::Paramable
params,
permitted_params : Hash(String, Array(String) | String)
permitted_params,
record : CustomTaxon
record,
required_attributes
required_attributes,
set_attributes(taxon_ptr_id : UUID | Avram::Nothing = IGNORE, is_private : Bool | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE)
set_attributes,
set_is_private_from_param(_value)
set_is_private_from_param,
set_taxon_ptr_id_from_param(_value)
set_taxon_ptr_id_from_param,
set_user_id_from_param(_value)
set_user_id_from_param,
taxon_ptr_id
taxon_ptr_id,
taxon_ptr_id=(_value)
taxon_ptr_id=,
user_id
user_id,
user_id=(_value)
user_id=
Constructor methods inherited from class CustomTaxon::DeleteOperation
new(record : T, params : Avram::Paramable, taxon_ptr_id : UUID | Avram::Nothing = IGNORE, is_private : Bool | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE)new(record : T, taxon_ptr_id : UUID | Avram::Nothing = IGNORE, is_private : Bool | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE) new
Class methods inherited from class CustomTaxon::DeleteOperation
delete(record : T, params, taxon_ptr_id : UUID | Avram::Nothing = IGNORE, is_private : Bool | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, &)delete(record : T, taxon_ptr_id : UUID | Avram::Nothing = IGNORE, is_private : Bool | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, &)
delete(record : T, params : Hash, **named_args, &) delete, delete!(record : T, params, taxon_ptr_id : UUID | Avram::Nothing = IGNORE, is_private : Bool | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE)
delete!(record : T, taxon_ptr_id : UUID | Avram::Nothing = IGNORE, is_private : Bool | Avram::Nothing = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE)
delete!(record : T, params : Hash, **named_args) delete!
Macros inherited from class CustomTaxon::DeleteOperation
param_key(key)
param_key
Constructor Detail
This is called at the end so @type will be of the subclass, and not the parent abstract class.
This is called at the end so @type will be of the subclass, and not the parent abstract class.
Class Method Detail
This is called at the end so @type will be of the subclass, and not the parent abstract class.
This is called at the end so @type will be of the subclass, and not the parent abstract class.
This is called at the end so @type will be of the subclass, and not the parent abstract class.
This is called at the end so @type will be of the subclass, and not the parent abstract class.
This is called at the end so @type will be of the subclass, and not the parent abstract class.
This is called at the end so @type will be of the subclass, and not the parent abstract class.
Macro Detail
Instance Method Detail
This is called at the end so @type will be of the subclass, and not the parent abstract class.