class BearerLogin::SaveOperation

Defined in:

Constant Summary

ATTRIBUTES = [] of Nil
COLUMN_ATTRIBUTES = [{name: user_id, type: User::PrimaryKeyType, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: active_at, type: Time, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: inactive_at, type: Time, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: name, type: String, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: scopes, type: Array(String), nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: token_digest, type: String, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: id, type: Int64, nilable: false, autogenerated: true, 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, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, name : String | Avram::Nothing = IGNORE, scopes : Array(String) | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = 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, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, name : String | Avram::Nothing = IGNORE, scopes : Array(String) | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = 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, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, name : String | Avram::Nothing = IGNORE, scopes : Array(String) | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = 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(user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, name : String | Avram::Nothing = IGNORE, scopes : Array(String) | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = 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, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, name : String | Avram::Nothing = IGNORE, scopes : Array(String) | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = 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(user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, name : String | Avram::Nothing = IGNORE, scopes : Array(String) | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = 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, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, name : String | Avram::Nothing = IGNORE, scopes : Array(String) | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = 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!(user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, name : String | Avram::Nothing = IGNORE, scopes : Array(String) | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = 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, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, name : String | Avram::Nothing = IGNORE, scopes : Array(String) | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = 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, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, name : String | Avram::Nothing = IGNORE, scopes : Array(String) | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = 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, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, name : String | Avram::Nothing = IGNORE, scopes : Array(String) | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = 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, user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, name : String | Avram::Nothing = IGNORE, scopes : Array(String) | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = 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 active_at #

def active_at=(_value) #

def attributes #

def id #

def id=(_value) #

def inactive_at #

def inactive_at=(_value) #

def name #

def name=(_value) #

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

def required_attributes #

def scopes #

def scopes=(_value) #

def set_active_at_from_param(_value) #

def set_attributes(user_id : User::PrimaryKeyType | Avram::Nothing = IGNORE, active_at : Time | Avram::Nothing = IGNORE, inactive_at : Time | Avram::Nothing | Nil = IGNORE, name : String | Avram::Nothing = IGNORE, scopes : Array(String) | Avram::Nothing = IGNORE, token_digest : String | Avram::Nothing = IGNORE, id : Int64 | Avram::Nothing = 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_id_from_param(_value) #

def set_inactive_at_from_param(_value) #

def set_name_from_param(_value) #

def set_scopes_from_param(_value : Array(String)) #

def set_token_digest_from_param(_value) #

def set_user_id_from_param(_value) #

def token_digest #

def token_digest=(_value) #

def user_id #

def user_id=(_value) #