class TriggerToken

Included Modules

Defined in:

models/trigger_token.cr

Constant Summary

ASSOCIATIONS = [] of Nil
COLUMNS = [{name: event_type, type: WebhookTriggerEvent, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: action, type: WebhookTriggerAction, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: conditions, type: TriggerConditions, nilable: true, autogenerated: false, value: nil, serialized: true}, {name: team_identifier, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: channel_identifier, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: bot_token, type: String, nilable: false, autogenerated: false, value: nil, serialized: false}, {name: user_token, type: String, nilable: true, autogenerated: false, value: nil, serialized: true}, {name: bot_user_id, type: String, nilable: false, autogenerated: false, value: nil, serialized: true}] of Nil

Constructors

Class Method Summary

Instance Method Summary

Macro Summary

Class methods inherited from class BaseModel

database : Avram::Database.class database

Constructor Detail

def self.new(event_type : Int32 | Int64, action : Int32 | Int64, conditions : TriggerConditions | Nil, team_identifier : String, channel_identifier : String, bot_token : String, user_token : Nil | String, bot_user_id : String) #

def self.new(__temp_161 : DB::ResultSet) #

Class Method Detail

def self.column_names : Array(Symbol) #

def self.columns : Array(NamedTuple(name: Symbol, nilable: Bool, type: String)) #

def self.ensure_correct_column_mappings! #

def self.from_rs(__temp_161 : DB::ResultSet) #

def self.refresh #

[View source]
def self.schema_enforcer_validations #

def self.table_name : String #

Instance Method Detail

def action : WebhookTriggerAction #

def action=(_action : WebhookTriggerAction::Lucky::ColumnType) #

def bot_token : String #

def bot_token=(_bot_token : String::Lucky::ColumnType) #

def bot_user_id : String #

def bot_user_id=(_bot_user_id : String) #

def channel_identifier : String #

def channel_identifier=(_channel_identifier : String::Lucky::ColumnType) #

def conditions : TriggerConditions | Nil #

def conditions=(_conditions : TriggerConditions | Nil) #

def event_type : WebhookTriggerEvent #

def event_type=(_event_type : WebhookTriggerEvent::Lucky::ColumnType) #

def team_identifier : String #

def team_identifier=(_team_identifier : String::Lucky::ColumnType) #

def user_token : String | Nil #

def user_token=(_user_token : String | Nil) #

Macro Detail

macro default_columns #

[View source]