class TriggerToken
- TriggerToken
- BaseModel
- Avram::Model
- Reference
- Object
Included Modules
- DB::Mappable
- LuckyCache::Cachable
Defined in:
models/trigger_token.crConstant 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
- .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)
- .new(__temp_161 : DB::ResultSet)
Class Method Summary
- .column_names : Array(Symbol)
- .columns : Array(NamedTuple(name: Symbol, nilable: Bool, type: String))
- .ensure_correct_column_mappings!
- .from_rs(__temp_161 : DB::ResultSet)
- .refresh
- .schema_enforcer_validations
- .table_name : String
Instance Method Summary
- #action : WebhookTriggerAction
- #action=(_action : WebhookTriggerAction::Lucky::ColumnType)
- #bot_token : String
- #bot_token=(_bot_token : String::Lucky::ColumnType)
- #bot_user_id : String
- #bot_user_id=(_bot_user_id : String)
- #channel_identifier : String
- #channel_identifier=(_channel_identifier : String::Lucky::ColumnType)
- #conditions : TriggerConditions | Nil
- #conditions=(_conditions : TriggerConditions | Nil)
- #event_type : WebhookTriggerEvent
- #event_type=(_event_type : WebhookTriggerEvent::Lucky::ColumnType)
- #team_identifier : String
- #team_identifier=(_team_identifier : String::Lucky::ColumnType)
- #user_token : String | Nil
- #user_token=(_user_token : String | Nil)
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)
#