class Tour::SaveOperation

Direct Known Subclasses

Defined in:

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}] of Nil
OPERATION_NEEDS = [] of Nil

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

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) #

@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, 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) #

@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, 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) #

@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(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) #

@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, 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, &) #

@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(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, &) #

@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, 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) #

@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!(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) #

@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.update(record : T, with 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, &) #

@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, 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, &) #

@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, 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) #

@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, 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) #

@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


Macro Detail

macro param_key(key) #

Instance Method Detail

def attributes #

def created_at #

def created_at=(_value) #

def end_date #

def end_date=(_value) #

def id #

def id=(_value) #

def image1 #

def image1=(_value) #

def image2 #

def image2=(_value) #

def image3 #

def image3=(_value) #

def image4 #

def image4=(_value) #

def image5 #

def image5=(_value) #

def note #

def note=(_value) #

def permitted_params : Hash(String, Array(String) | String) #

def required_attributes #

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) #

@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 set_created_at_from_param(_value) #

def set_end_date_from_param(_value) #

def set_id_from_param(_value) #

def set_image1_from_param(_value) #

def set_image2_from_param(_value) #

def set_image3_from_param(_value) #

def set_image4_from_param(_value) #

def set_image5_from_param(_value) #

def set_note_from_param(_value) #

def set_start_date_from_param(_value) #

def set_title_from_param(_value) #

def set_user_id_from_param(_value) #

def start_date #

def start_date=(_value) #

def title #

def title=(_value) #

def user_id #

def user_id=(_value) #