class Merchant::DeleteOperation

Defined in:

Constant Summary

ATTRIBUTES = [] of Nil
COLUMN_ATTRIBUTES = [{name: id, type: UUID, nilable: false, autogenerated: true, value: nil}, {name: created_at, type: Time, nilable: false, autogenerated: true, value: nil}, {name: updated_at, type: Time, nilable: false, autogenerated: true, value: nil}, {name: name, type: String, nilable: false, autogenerated: false, value: nil}, {name: description, type: String, nilable: false, autogenerated: false, value: nil}, {name: user_id, type: User::PrimaryKeyType, nilable: false, autogenerated: false, value: nil}] of Nil
OPERATION_NEEDS = [] of Nil

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(record : T, params : Avram::Paramable, id : UUID | Nothing = Nothing.new, created_at : Time | Nothing = Nothing.new, updated_at : Time | Nothing = Nothing.new, name : String | Nothing = Nothing.new, description : String | Nothing = Nothing.new, user_id : User::PrimaryKeyType | Nothing = 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 : UUID | Nothing = Nothing.new, created_at : Time | Nothing = Nothing.new, updated_at : Time | Nothing = Nothing.new, name : String | Nothing = Nothing.new, description : String | Nothing = Nothing.new, user_id : User::PrimaryKeyType | Nothing = 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(*args, **named_args, &) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


def self.delete!(*args, **named_args) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


def self.destroy(record : T, params, id : UUID | Nothing = Nothing.new, created_at : Time | Nothing = Nothing.new, updated_at : Time | Nothing = Nothing.new, name : String | Nothing = Nothing.new, description : String | Nothing = Nothing.new, user_id : User::PrimaryKeyType | Nothing = Nothing.new, &) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


def self.destroy(record : T, id : UUID | Nothing = Nothing.new, created_at : Time | Nothing = Nothing.new, updated_at : Time | Nothing = Nothing.new, name : String | Nothing = Nothing.new, description : String | Nothing = Nothing.new, user_id : User::PrimaryKeyType | Nothing = Nothing.new, &) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


def self.destroy(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.destroy!(record : T, params, id : UUID | Nothing = Nothing.new, created_at : Time | Nothing = Nothing.new, updated_at : Time | Nothing = Nothing.new, name : String | Nothing = Nothing.new, description : String | Nothing = Nothing.new, user_id : User::PrimaryKeyType | Nothing = Nothing.new) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


def self.destroy!(record : T, id : UUID | Nothing = Nothing.new, created_at : Time | Nothing = Nothing.new, updated_at : Time | Nothing = Nothing.new, name : String | Nothing = Nothing.new, description : String | Nothing = Nothing.new, user_id : User::PrimaryKeyType | Nothing = Nothing.new) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


def self.destroy!(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 attributes #

def created_at #

def created_at=(_value) #

def delete_status : DeleteStatus #

def delete_status=(delete_status : DeleteStatus) #

def description #

def description=(_value) #

def id #

def id=(_value) #

def name #

def name=(_value) #

def params : Avram::Paramable #

def permitted_params #

def record : Merchant #

def set_attributes(id : UUID | Nothing = Nothing.new, created_at : Time | Nothing = Nothing.new, updated_at : Time | Nothing = Nothing.new, name : String | Nothing = Nothing.new, description : String | Nothing = Nothing.new, user_id : User::PrimaryKeyType | Nothing = Nothing.new) #

This is called at the end so @type will be of the subclass, and not the parent abstract class.


def set_created_at_from_param(_value) #

def set_description_from_param(_value) #

def set_id_from_param(_value) #

def set_name_from_param(_value) #

def set_updated_at_from_param(_value) #

def set_user_id_from_param(_value) #

def updated_at #

def updated_at=(_value) #

def user_id #

def user_id=(_value) #

Macro Detail

macro param_key(key) #