class SaveCharacter

Defined in:

operations/character_save.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
FOREIGN_KEY = "character_id"
OPERATION_NEEDS = [current_user : User] of Nil

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Instance methods inherited from class Character::SaveOperation

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=, 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=, permitted_params permitted_params, persona persona, persona=(_value) persona=, 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::SaveOperation

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(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(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::SaveOperation

create(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, &)
create(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, &)
create(params : Hash, **named_args, &)
create
, create!(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)
create!(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)
create!(params : Hash, **named_args)
create!
, update(record : T, with 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, &)
update(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, &)
update(record : T, params : Hash, **named_args, &)
update
, update!(record : T, with 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)
update!(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)
update!(record : T, params : Hash, **named_args)
update!

Constructor Detail

def self.new(record : T, params : Avram::Paramable, current_user : User, 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) #

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


def self.new(params : Avram::Paramable, current_user : User, 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) #

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


def self.new(record : T, current_user : User, 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) #

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


def self.new(current_user : User, 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) #

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


Class Method Detail

def self.create(params, current_user : User, 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, &) #

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


def self.create(current_user : User, 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, &) #

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


def self.create(params : Hash, **named_args, &) #

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


def self.create!(params, current_user : User, 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) #

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


def self.create!(current_user : User, 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) #

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


def self.create!(params : Hash, **named_args) #

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


def self.param_key #

[View source]
def self.update(record : T, with params, current_user : User, 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, &) #

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


def self.update(record : T, current_user : User, 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, &) #

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


def self.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 extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update!(record : T, with params, current_user : User, 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) #

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


def self.update!(record : T, current_user : User, 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) #

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


def self.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 extrac macro was extracted. We need @type to get the attributes for this SaveOperation


Instance Method Detail

def avatar_id #

[View source]
def before_save #

[View source]
def current_user : User #

def current_user=(current_user : User) #

def description #

[View source]
def example_chats #

[View source]
def greeting #

[View source]
def is_contentious #

[View source]
def name #

[View source]
def persona #

[View source]
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) #

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


def visibility #

[View source]
def world_scenario #

[View source]

Macro Detail

macro param_key(key) #