class DeleteCharacter

Defined in:

operations/character_delete.cr

Constant Summary

ATTRIBUTES = [] of Nil
COLUMN_ATTRIBUTES = [{name: id, type: Int64, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: created_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: updated_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: slug, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: name, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: description, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: avatar_id, type: String, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: greeting, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: persona, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: world_scenario, type: String, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: example_chats, type: String, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: visibility, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: is_contentious, type: Bool, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: creator_id, type: User::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: id, type: Int64, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: created_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: updated_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false}, {name: slug, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: name, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: description, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: avatar_id, type: String, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: greeting, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: persona, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: world_scenario, type: String, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: example_chats, type: String, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: visibility, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: is_contentious, type: Bool, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: creator_id, type: User::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false}] of Nil
OPERATION_NEEDS = [] of Nil

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Instance methods inherited from class Character::DeleteOperation

attributes attributes, avatar_id avatar_id, avatar_id=(_value) avatar_id=, created_at created_at, created_at=(_value) created_at=, creator_id creator_id, creator_id=(_value) creator_id=, delete_status : OperationStatus delete_status, delete_status=(delete_status : OperationStatus) delete_status=, description description, description=(_value) description=, example_chats example_chats, example_chats=(_value) example_chats=, greeting greeting, greeting=(_value) greeting=, id id, id=(_value) id=, is_contentious is_contentious, is_contentious=(_value) is_contentious=, name name, name=(_value) name=, params : Avram::Paramable params, permitted_params permitted_params, persona persona, persona=(_value) persona=, record : Character record, required_attributes required_attributes, set_attributes(id : Int64 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, slug : String | Avram::Nothing = Avram::Nothing.new, name : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing = Avram::Nothing.new, avatar_id : String | Avram::Nothing | Nil = Avram::Nothing.new, greeting : String | Avram::Nothing = Avram::Nothing.new, persona : String | Avram::Nothing = Avram::Nothing.new, world_scenario : String | Avram::Nothing | Nil = Avram::Nothing.new, example_chats : String | Avram::Nothing | Nil = Avram::Nothing.new, visibility : String | Avram::Nothing = Avram::Nothing.new, is_contentious : Bool | Avram::Nothing = Avram::Nothing.new, creator_id : User::PrimaryKeyType | Avram::Nothing = Avram::Nothing.new) set_attributes, set_avatar_id_from_param(_value) set_avatar_id_from_param, set_created_at_from_param(_value) set_created_at_from_param, set_creator_id_from_param(_value) set_creator_id_from_param, set_description_from_param(_value) set_description_from_param, set_example_chats_from_param(_value) set_example_chats_from_param, set_greeting_from_param(_value) set_greeting_from_param, set_id_from_param(_value) set_id_from_param, set_is_contentious_from_param(_value) set_is_contentious_from_param, set_name_from_param(_value) set_name_from_param, set_persona_from_param(_value) set_persona_from_param, set_slug_from_param(_value) set_slug_from_param, set_updated_at_from_param(_value) set_updated_at_from_param, set_visibility_from_param(_value) set_visibility_from_param, set_world_scenario_from_param(_value) set_world_scenario_from_param, slug slug, slug=(_value) slug=, updated_at updated_at, updated_at=(_value) updated_at=, visibility visibility, visibility=(_value) visibility=, world_scenario world_scenario, world_scenario=(_value) world_scenario=

Constructor methods inherited from class Character::DeleteOperation

new(record : T, params : Avram::Paramable, id : Int64 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, slug : String | Avram::Nothing = Avram::Nothing.new, name : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing = Avram::Nothing.new, avatar_id : String | Avram::Nothing | Nil = Avram::Nothing.new, greeting : String | Avram::Nothing = Avram::Nothing.new, persona : String | Avram::Nothing = Avram::Nothing.new, world_scenario : String | Avram::Nothing | Nil = Avram::Nothing.new, example_chats : String | Avram::Nothing | Nil = Avram::Nothing.new, visibility : String | Avram::Nothing = Avram::Nothing.new, is_contentious : Bool | Avram::Nothing = Avram::Nothing.new, creator_id : User::PrimaryKeyType | Avram::Nothing = Avram::Nothing.new)
new(record : T, id : Int64 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, slug : String | Avram::Nothing = Avram::Nothing.new, name : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing = Avram::Nothing.new, avatar_id : String | Avram::Nothing | Nil = Avram::Nothing.new, greeting : String | Avram::Nothing = Avram::Nothing.new, persona : String | Avram::Nothing = Avram::Nothing.new, world_scenario : String | Avram::Nothing | Nil = Avram::Nothing.new, example_chats : String | Avram::Nothing | Nil = Avram::Nothing.new, visibility : String | Avram::Nothing = Avram::Nothing.new, is_contentious : Bool | Avram::Nothing = Avram::Nothing.new, creator_id : User::PrimaryKeyType | Avram::Nothing = Avram::Nothing.new)
new

Class methods inherited from class Character::DeleteOperation

delete(record : T, params, id : Int64 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, slug : String | Avram::Nothing = Avram::Nothing.new, name : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing = Avram::Nothing.new, avatar_id : String | Avram::Nothing | Nil = Avram::Nothing.new, greeting : String | Avram::Nothing = Avram::Nothing.new, persona : String | Avram::Nothing = Avram::Nothing.new, world_scenario : String | Avram::Nothing | Nil = Avram::Nothing.new, example_chats : String | Avram::Nothing | Nil = Avram::Nothing.new, visibility : String | Avram::Nothing = Avram::Nothing.new, is_contentious : Bool | Avram::Nothing = Avram::Nothing.new, creator_id : User::PrimaryKeyType | Avram::Nothing = Avram::Nothing.new, &)
delete(record : T, id : Int64 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, slug : String | Avram::Nothing = Avram::Nothing.new, name : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing = Avram::Nothing.new, avatar_id : String | Avram::Nothing | Nil = Avram::Nothing.new, greeting : String | Avram::Nothing = Avram::Nothing.new, persona : String | Avram::Nothing = Avram::Nothing.new, world_scenario : String | Avram::Nothing | Nil = Avram::Nothing.new, example_chats : String | Avram::Nothing | Nil = Avram::Nothing.new, visibility : String | Avram::Nothing = Avram::Nothing.new, is_contentious : Bool | Avram::Nothing = Avram::Nothing.new, creator_id : User::PrimaryKeyType | Avram::Nothing = Avram::Nothing.new, &)
delete(record : T, params : Hash, **named_args, &)
delete
, delete!(record : T, params, id : Int64 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, slug : String | Avram::Nothing = Avram::Nothing.new, name : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing = Avram::Nothing.new, avatar_id : String | Avram::Nothing | Nil = Avram::Nothing.new, greeting : String | Avram::Nothing = Avram::Nothing.new, persona : String | Avram::Nothing = Avram::Nothing.new, world_scenario : String | Avram::Nothing | Nil = Avram::Nothing.new, example_chats : String | Avram::Nothing | Nil = Avram::Nothing.new, visibility : String | Avram::Nothing = Avram::Nothing.new, is_contentious : Bool | Avram::Nothing = Avram::Nothing.new, creator_id : User::PrimaryKeyType | Avram::Nothing = Avram::Nothing.new)
delete!(record : T, id : Int64 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, slug : String | Avram::Nothing = Avram::Nothing.new, name : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing = Avram::Nothing.new, avatar_id : String | Avram::Nothing | Nil = Avram::Nothing.new, greeting : String | Avram::Nothing = Avram::Nothing.new, persona : String | Avram::Nothing = Avram::Nothing.new, world_scenario : String | Avram::Nothing | Nil = Avram::Nothing.new, example_chats : String | Avram::Nothing | Nil = Avram::Nothing.new, visibility : String | Avram::Nothing = Avram::Nothing.new, is_contentious : Bool | Avram::Nothing = Avram::Nothing.new, creator_id : User::PrimaryKeyType | Avram::Nothing = Avram::Nothing.new)
delete!(record : T, params : Hash, **named_args)
delete!

Constructor Detail

def self.new(record : T, params : Avram::Paramable, id : Int64 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, slug : String | Avram::Nothing = Avram::Nothing.new, name : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing = Avram::Nothing.new, avatar_id : String | Avram::Nothing | Nil = Avram::Nothing.new, greeting : String | Avram::Nothing = Avram::Nothing.new, persona : String | Avram::Nothing = Avram::Nothing.new, world_scenario : String | Avram::Nothing | Nil = Avram::Nothing.new, example_chats : String | Avram::Nothing | Nil = Avram::Nothing.new, visibility : String | Avram::Nothing = Avram::Nothing.new, is_contentious : Bool | Avram::Nothing = Avram::Nothing.new, creator_id : User::PrimaryKeyType | 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(record : T, id : Int64 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, slug : String | Avram::Nothing = Avram::Nothing.new, name : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing = Avram::Nothing.new, avatar_id : String | Avram::Nothing | Nil = Avram::Nothing.new, greeting : String | Avram::Nothing = Avram::Nothing.new, persona : String | Avram::Nothing = Avram::Nothing.new, world_scenario : String | Avram::Nothing | Nil = Avram::Nothing.new, example_chats : String | Avram::Nothing | Nil = Avram::Nothing.new, visibility : String | Avram::Nothing = Avram::Nothing.new, is_contentious : Bool | Avram::Nothing = Avram::Nothing.new, creator_id : User::PrimaryKeyType | 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

def self.delete(record : T, params, id : Int64 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, slug : String | Avram::Nothing = Avram::Nothing.new, name : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing = Avram::Nothing.new, avatar_id : String | Avram::Nothing | Nil = Avram::Nothing.new, greeting : String | Avram::Nothing = Avram::Nothing.new, persona : String | Avram::Nothing = Avram::Nothing.new, world_scenario : String | Avram::Nothing | Nil = Avram::Nothing.new, example_chats : String | Avram::Nothing | Nil = Avram::Nothing.new, visibility : String | Avram::Nothing = Avram::Nothing.new, is_contentious : Bool | Avram::Nothing = Avram::Nothing.new, creator_id : User::PrimaryKeyType | 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.delete(record : T, id : Int64 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, slug : String | Avram::Nothing = Avram::Nothing.new, name : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing = Avram::Nothing.new, avatar_id : String | Avram::Nothing | Nil = Avram::Nothing.new, greeting : String | Avram::Nothing = Avram::Nothing.new, persona : String | Avram::Nothing = Avram::Nothing.new, world_scenario : String | Avram::Nothing | Nil = Avram::Nothing.new, example_chats : String | Avram::Nothing | Nil = Avram::Nothing.new, visibility : String | Avram::Nothing = Avram::Nothing.new, is_contentious : Bool | Avram::Nothing = Avram::Nothing.new, creator_id : User::PrimaryKeyType | 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.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.


def self.delete!(record : T, params, id : Int64 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, slug : String | Avram::Nothing = Avram::Nothing.new, name : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing = Avram::Nothing.new, avatar_id : String | Avram::Nothing | Nil = Avram::Nothing.new, greeting : String | Avram::Nothing = Avram::Nothing.new, persona : String | Avram::Nothing = Avram::Nothing.new, world_scenario : String | Avram::Nothing | Nil = Avram::Nothing.new, example_chats : String | Avram::Nothing | Nil = Avram::Nothing.new, visibility : String | Avram::Nothing = Avram::Nothing.new, is_contentious : Bool | Avram::Nothing = Avram::Nothing.new, creator_id : User::PrimaryKeyType | 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.delete!(record : T, id : Int64 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, slug : String | Avram::Nothing = Avram::Nothing.new, name : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing = Avram::Nothing.new, avatar_id : String | Avram::Nothing | Nil = Avram::Nothing.new, greeting : String | Avram::Nothing = Avram::Nothing.new, persona : String | Avram::Nothing = Avram::Nothing.new, world_scenario : String | Avram::Nothing | Nil = Avram::Nothing.new, example_chats : String | Avram::Nothing | Nil = Avram::Nothing.new, visibility : String | Avram::Nothing = Avram::Nothing.new, is_contentious : Bool | Avram::Nothing = Avram::Nothing.new, creator_id : User::PrimaryKeyType | 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.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.


Instance Method Detail

def delete_status : OperationStatus #

def delete_status=(delete_status : OperationStatus) #

def params : Avram::Paramable #

def record : Character #

def set_attributes(id : Int64 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, slug : String | Avram::Nothing = Avram::Nothing.new, name : String | Avram::Nothing = Avram::Nothing.new, description : String | Avram::Nothing = Avram::Nothing.new, avatar_id : String | Avram::Nothing | Nil = Avram::Nothing.new, greeting : String | Avram::Nothing = Avram::Nothing.new, persona : String | Avram::Nothing = Avram::Nothing.new, world_scenario : String | Avram::Nothing | Nil = Avram::Nothing.new, example_chats : String | Avram::Nothing | Nil = Avram::Nothing.new, visibility : String | Avram::Nothing = Avram::Nothing.new, is_contentious : Bool | Avram::Nothing = Avram::Nothing.new, creator_id : User::PrimaryKeyType | 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 Detail

macro param_key(key) #