class UserOrderForm

Defined in:

operations/user_order_form.cr

Constant Summary

ATTRIBUTES = [] of Nil
COLUMN_ATTRIBUTES = [{name: id, type: Int32, 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: delivery_point_type, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: delivery_point_id, type: Int32, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: planned_delivery_date, type: Time, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: delivered_at, type: Time, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: total_cost, type: Float64, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: total_weight, type: Float64, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: planned_delivery_time_interval, type: Int16, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: used_bonuses, type: Int16, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: earned_bonuses, type: Int16, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: earned_bonuses_state, type: Int16, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: id, type: Int32, 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: delivery_point_type, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: delivery_point_id, type: Int32, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: planned_delivery_date, type: Time, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: delivered_at, type: Time, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: total_cost, type: Float64, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: total_weight, type: Float64, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: planned_delivery_time_interval, type: Int16, nilable: true, autogenerated: false, value: nil, serialized: false}, {name: used_bonuses, type: Int16, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: earned_bonuses, type: Int16, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: earned_bonuses_state, type: Int16, nilable: false, autogenerated: false, value: nil, serialized: false}] of Nil
FOREIGN_KEY = "user_order_id"
OPERATION_NEEDS = [] of Nil

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Instance methods inherited from class UserOrder::SaveOperation

attributes attributes, created_at created_at, created_at=(_value) created_at=, delivered_at delivered_at, delivered_at=(_value) delivered_at=, delivery_point_id delivery_point_id, delivery_point_id=(_value) delivery_point_id=, delivery_point_type delivery_point_type, delivery_point_type=(_value) delivery_point_type=, earned_bonuses earned_bonuses, earned_bonuses=(_value) earned_bonuses=, earned_bonuses_state earned_bonuses_state, earned_bonuses_state=(_value) earned_bonuses_state=, id id, id=(_value) id=, permitted_params permitted_params, planned_delivery_date planned_delivery_date, planned_delivery_date=(_value) planned_delivery_date=, planned_delivery_time_interval planned_delivery_time_interval, planned_delivery_time_interval=(_value) planned_delivery_time_interval=, required_attributes required_attributes, set_attributes(id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new) set_attributes, set_created_at_from_param(_value) set_created_at_from_param, set_delivered_at_from_param(_value) set_delivered_at_from_param, set_delivery_point_id_from_param(_value) set_delivery_point_id_from_param, set_delivery_point_type_from_param(_value) set_delivery_point_type_from_param, set_earned_bonuses_from_param(_value) set_earned_bonuses_from_param, set_earned_bonuses_state_from_param(_value) set_earned_bonuses_state_from_param, set_id_from_param(_value) set_id_from_param, set_planned_delivery_date_from_param(_value) set_planned_delivery_date_from_param, set_planned_delivery_time_interval_from_param(_value) set_planned_delivery_time_interval_from_param, set_total_cost_from_param(_value) set_total_cost_from_param, set_total_weight_from_param(_value) set_total_weight_from_param, set_updated_at_from_param(_value) set_updated_at_from_param, set_used_bonuses_from_param(_value) set_used_bonuses_from_param, total_cost total_cost, total_cost=(_value) total_cost=, total_weight total_weight, total_weight=(_value) total_weight=, updated_at updated_at, updated_at=(_value) updated_at=, used_bonuses used_bonuses, used_bonuses=(_value) used_bonuses=

Constructor methods inherited from class UserOrder::SaveOperation

new(record : T, params : Avram::Paramable, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new)
new(params : Avram::Paramable, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new)
new(record : T, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new)
new(id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new)
new

Class methods inherited from class UserOrder::SaveOperation

create(params, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new, &)
create(id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new, &)
create(params : Hash, **named_args, &)
create
, create!(params, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new)
create!(id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new)
create!(params : Hash, **named_args)
create!
, update(record : T, with params, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new, &)
update(record : T, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new, &)
update(record : T, params : Hash, **named_args, &)
update
, update!(record : T, with params, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new)
update!(record : T, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | Avram::Nothing = Avram::Nothing.new)
update!(record : T, params : Hash, **named_args)
update!

Constructor Detail

def self.new(record : T, params : Avram::Paramable, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | 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, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | 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, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | 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(id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | 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, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | 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(id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | 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, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | 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!(id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | 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.update(record : T, with params, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | 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, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | 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, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | 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, id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | 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 delivered_at #

[View source]
def delivery_point_id #

[View source]
def delivery_point_type #

[View source]
def earned_bonuses #

[View source]
def earned_bonuses_state #

[View source]
def planned_delivery_date #

[View source]
def planned_delivery_time_interval #

[View source]
def set_attributes(id : Int32 | Avram::Nothing = Avram::Nothing.new, created_at : Time | Avram::Nothing = Avram::Nothing.new, updated_at : Time | Avram::Nothing = Avram::Nothing.new, delivery_point_type : String | Avram::Nothing = Avram::Nothing.new, delivery_point_id : Int32 | Avram::Nothing = Avram::Nothing.new, planned_delivery_date : Time | Avram::Nothing | Nil = Avram::Nothing.new, delivered_at : Time | Avram::Nothing | Nil = Avram::Nothing.new, total_cost : Float64 | Avram::Nothing = Avram::Nothing.new, total_weight : Float64 | Avram::Nothing = Avram::Nothing.new, planned_delivery_time_interval : Int16 | Avram::Nothing | Nil = Avram::Nothing.new, used_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses : Int16 | Avram::Nothing = Avram::Nothing.new, earned_bonuses_state : Int16 | 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 total_cost #

[View source]
def total_weight #

[View source]
def used_bonuses #

[View source]

Macro Detail

macro param_key(key) #