class DeleteTour

Overview

採集行の削除オペレーション

Defined in:

operations/delete_tour.cr

Constant Summary

ATTRIBUTES = [] of Nil
COLUMN_ATTRIBUTES = [{name: id, type: UUID, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: created_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: title, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: start_date, type: Time, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: end_date, type: Time, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: note, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: image1, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: image2, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: image3, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: image4, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: image5, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: user_id, type: Int32, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: id, type: UUID, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: created_at, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: title, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: start_date, type: Time, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: end_date, type: Time, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: note, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: image1, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: image2, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: image3, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: image4, type: String, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: image5, type: String, nilable: true, autogenerated: false, value: nil, 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

Class Method Summary

Macro Summary

Instance Method Summary

Instance methods inherited from class Tour::DeleteOperation

attributes attributes, created_at created_at, created_at=(_value) created_at=, delete_status : OperationStatus delete_status, delete_status=(delete_status : OperationStatus) delete_status=, end_date end_date, end_date=(_value) end_date=, id id, id=(_value) id=, image1 image1, image1=(_value) image1=, image2 image2, image2=(_value) image2=, image3 image3, image3=(_value) image3=, image4 image4, image4=(_value) image4=, image5 image5, image5=(_value) image5=, note note, note=(_value) note=, params : Avram::Paramable params, permitted_params : Hash(String, Array(String) | String) permitted_params, record : Tour record, required_attributes required_attributes, set_attributes(id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, title : String | Avram::Nothing = IGNORE, start_date : Time | Avram::Nothing = IGNORE, end_date : Time | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, image1 : String | Avram::Nothing | Nil = IGNORE, image2 : String | Avram::Nothing | Nil = IGNORE, image3 : String | Avram::Nothing | Nil = IGNORE, image4 : String | Avram::Nothing | Nil = IGNORE, image5 : String | Avram::Nothing | Nil = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE) set_attributes, set_created_at_from_param(_value) set_created_at_from_param, set_end_date_from_param(_value) set_end_date_from_param, set_id_from_param(_value) set_id_from_param, set_image1_from_param(_value) set_image1_from_param, set_image2_from_param(_value) set_image2_from_param, set_image3_from_param(_value) set_image3_from_param, set_image4_from_param(_value) set_image4_from_param, set_image5_from_param(_value) set_image5_from_param, set_note_from_param(_value) set_note_from_param, set_start_date_from_param(_value) set_start_date_from_param, set_title_from_param(_value) set_title_from_param, set_user_id_from_param(_value) set_user_id_from_param, start_date start_date, start_date=(_value) start_date=, title title, title=(_value) title=, user_id user_id, user_id=(_value) user_id=

Constructor methods inherited from class Tour::DeleteOperation

new(record : T, params : Avram::Paramable, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, title : String | Avram::Nothing = IGNORE, start_date : Time | Avram::Nothing = IGNORE, end_date : Time | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, image1 : String | Avram::Nothing | Nil = IGNORE, image2 : String | Avram::Nothing | Nil = IGNORE, image3 : String | Avram::Nothing | Nil = IGNORE, image4 : String | Avram::Nothing | Nil = IGNORE, image5 : String | Avram::Nothing | Nil = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE)
new(record : T, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, title : String | Avram::Nothing = IGNORE, start_date : Time | Avram::Nothing = IGNORE, end_date : Time | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, image1 : String | Avram::Nothing | Nil = IGNORE, image2 : String | Avram::Nothing | Nil = IGNORE, image3 : String | Avram::Nothing | Nil = IGNORE, image4 : String | Avram::Nothing | Nil = IGNORE, image5 : String | Avram::Nothing | Nil = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE)
new

Class methods inherited from class Tour::DeleteOperation

delete(record : T, params, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, title : String | Avram::Nothing = IGNORE, start_date : Time | Avram::Nothing = IGNORE, end_date : Time | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, image1 : String | Avram::Nothing | Nil = IGNORE, image2 : String | Avram::Nothing | Nil = IGNORE, image3 : String | Avram::Nothing | Nil = IGNORE, image4 : String | Avram::Nothing | Nil = IGNORE, image5 : String | Avram::Nothing | Nil = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, &)
delete(record : T, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, title : String | Avram::Nothing = IGNORE, start_date : Time | Avram::Nothing = IGNORE, end_date : Time | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, image1 : String | Avram::Nothing | Nil = IGNORE, image2 : String | Avram::Nothing | Nil = IGNORE, image3 : String | Avram::Nothing | Nil = IGNORE, image4 : String | Avram::Nothing | Nil = IGNORE, image5 : String | Avram::Nothing | Nil = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE, &)
delete(record : T, params : Hash, **named_args, &)
delete
, delete!(record : T, params, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, title : String | Avram::Nothing = IGNORE, start_date : Time | Avram::Nothing = IGNORE, end_date : Time | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, image1 : String | Avram::Nothing | Nil = IGNORE, image2 : String | Avram::Nothing | Nil = IGNORE, image3 : String | Avram::Nothing | Nil = IGNORE, image4 : String | Avram::Nothing | Nil = IGNORE, image5 : String | Avram::Nothing | Nil = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE)
delete!(record : T, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, title : String | Avram::Nothing = IGNORE, start_date : Time | Avram::Nothing = IGNORE, end_date : Time | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, image1 : String | Avram::Nothing | Nil = IGNORE, image2 : String | Avram::Nothing | Nil = IGNORE, image3 : String | Avram::Nothing | Nil = IGNORE, image4 : String | Avram::Nothing | Nil = IGNORE, image5 : String | Avram::Nothing | Nil = IGNORE, user_id : Int32 | Avram::Nothing | Nil = IGNORE)
delete!(record : T, params : Hash, **named_args)
delete!

Macros inherited from class Tour::DeleteOperation

param_key(key) param_key

Constructor Detail

def self.new(record : T, params : Avram::Paramable, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, title : String | Avram::Nothing = IGNORE, start_date : Time | Avram::Nothing = IGNORE, end_date : Time | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, image1 : String | Avram::Nothing | Nil = IGNORE, image2 : String | Avram::Nothing | Nil = IGNORE, image3 : String | Avram::Nothing | Nil = IGNORE, image4 : String | Avram::Nothing | Nil = IGNORE, image5 : String | Avram::Nothing | Nil = 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.


def self.new(record : T, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, title : String | Avram::Nothing = IGNORE, start_date : Time | Avram::Nothing = IGNORE, end_date : Time | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, image1 : String | Avram::Nothing | Nil = IGNORE, image2 : String | Avram::Nothing | Nil = IGNORE, image3 : String | Avram::Nothing | Nil = IGNORE, image4 : String | Avram::Nothing | Nil = IGNORE, image5 : String | Avram::Nothing | Nil = 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 Detail

def self.delete(record : T, params, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, title : String | Avram::Nothing = IGNORE, start_date : Time | Avram::Nothing = IGNORE, end_date : Time | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, image1 : String | Avram::Nothing | Nil = IGNORE, image2 : String | Avram::Nothing | Nil = IGNORE, image3 : String | Avram::Nothing | Nil = IGNORE, image4 : String | Avram::Nothing | Nil = IGNORE, image5 : String | Avram::Nothing | Nil = 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.


def self.delete(record : T, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, title : String | Avram::Nothing = IGNORE, start_date : Time | Avram::Nothing = IGNORE, end_date : Time | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, image1 : String | Avram::Nothing | Nil = IGNORE, image2 : String | Avram::Nothing | Nil = IGNORE, image3 : String | Avram::Nothing | Nil = IGNORE, image4 : String | Avram::Nothing | Nil = IGNORE, image5 : String | Avram::Nothing | Nil = 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.


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 : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, title : String | Avram::Nothing = IGNORE, start_date : Time | Avram::Nothing = IGNORE, end_date : Time | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, image1 : String | Avram::Nothing | Nil = IGNORE, image2 : String | Avram::Nothing | Nil = IGNORE, image3 : String | Avram::Nothing | Nil = IGNORE, image4 : String | Avram::Nothing | Nil = IGNORE, image5 : String | Avram::Nothing | Nil = 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.


def self.delete!(record : T, id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, title : String | Avram::Nothing = IGNORE, start_date : Time | Avram::Nothing = IGNORE, end_date : Time | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, image1 : String | Avram::Nothing | Nil = IGNORE, image2 : String | Avram::Nothing | Nil = IGNORE, image3 : String | Avram::Nothing | Nil = IGNORE, image4 : String | Avram::Nothing | Nil = IGNORE, image5 : String | Avram::Nothing | Nil = 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.


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.


Macro Detail

macro param_key(key) #

採集行の削除オペレーション


Instance Method Detail

def delete_status : OperationStatus #

採集行の削除オペレーション


def delete_status=(delete_status : OperationStatus) #

採集行の削除オペレーション


def params : Avram::Paramable #

採集行の削除オペレーション


def record : Tour #

採集行の削除オペレーション


def set_attributes(id : UUID | Avram::Nothing = IGNORE, created_at : Time | Avram::Nothing = IGNORE, title : String | Avram::Nothing = IGNORE, start_date : Time | Avram::Nothing = IGNORE, end_date : Time | Avram::Nothing = IGNORE, note : String | Avram::Nothing = IGNORE, image1 : String | Avram::Nothing | Nil = IGNORE, image2 : String | Avram::Nothing | Nil = IGNORE, image3 : String | Avram::Nothing | Nil = IGNORE, image4 : String | Avram::Nothing | Nil = IGNORE, image5 : String | Avram::Nothing | Nil = 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.