class

PlaceOS::Model::PendingMail

Inherits Neuroplastic < PgORM::Timestamps < PgORM::Base < PgORM::Validators < PgORM::Table < PgORM::Persistence < PgORM::Associations < ActiveModel::Callbacks < ActiveModel::Validation < ActiveModel::Model < DB::Mappable < DB::Serializable < YAML::Serializable < JSON::Serializable < Reference < Object

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

Constants

CALLBACKS = { before_save: [do if (__temp_1405 = @authority) && __temp_1405.new_record? __temp_1405.save self.authority_id = __temp_1405.id.not_nil! end end, do if (__temp_1407 = @user) && __temp_1407.new_record? __temp_1407.save self.user_id = __temp_1407.id.not_nil! end end] of Nil, after_save: [] of Nil, before_create: [do self.created_at = self.updated_at = Time.utc end] of Nil, after_create: [] of Nil, before_update: [do self.updated_at = Time.utc end] of Nil, after_update: [] of Nil, before_destroy: [] of Nil, after_destroy: [do end, do end] of Nil, }

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

PRIMARY_KEY_TYPES = {:id => UUID} of Nil => Nil

macro level key => type

PRIMARY_KEYS = [{:id}]

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

Constructors

from_json(string_or_io : String | IO, trusted : Bool = false) : self

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

from_json(string_or_io : String | IO, root : String, trusted : Bool = false) : self

Deserializes the given JSON in string_or_io into an instance of self, assuming the JSON consists of an JSON object with key root, and whose value is the value to deserialize. Will not deserialise from fields with mass_assign: false

class User < ActiveModel::Model
  attribute name : String
  attribute google_id : UUID, mass_assign: false
end

User.from_json(%({"main": {"name": "Jason", "google_id": "f6f70bfb-c882-446d-8758-7ce47db39620"}}), root: "main") # => #<User:0x103131b20 @name="Jason">
from_trusted_json(string_or_io : String | IO, root : String) : self

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

from_trusted_json(string_or_io : String | IO) : self

Serialize from a trusted JSON source

from_trusted_yaml(string_or_io : String | IO) : self

Serialize from a trusted YAML source

from_yaml(string_or_io : String | IO, trusted : Bool = false) : self

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

Source
new(pull : JSON::PullParser)

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

Source
new(rs : DB::ResultSet)

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

new(created_at : Time | ActiveModel::Model::None = ::ActiveModel::Model::None.new, updated_at : Time | ActiveModel::Model::None = ::ActiveModel::Model::None.new, id : UUID | ActiveModel::Model::None = ::ActiveModel::Model::None.new, send_at : Time | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, expiry : Time | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, send_to : Array(String) | ActiveModel::Model::None = ::ActiveModel::Model::None.new, template : Array(String) | ActiveModel::Model::None = ::ActiveModel::Model::None.new, args : Hash(String, Bool | Float64 | Int64 | String | Nil) | ActiveModel::Model::None = ::ActiveModel::Model::None.new, resource_attachments : Array(String) | ActiveModel::Model::None = ::ActiveModel::Model::None.new, attachments : Array(String) | ActiveModel::Model::None = ::ActiveModel::Model::None.new, cc : Array(String) | ActiveModel::Model::None = ::ActiveModel::Model::None.new, bcc : Array(String) | ActiveModel::Model::None = ::ActiveModel::Model::None.new, send_from : String | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, reply_to : String | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, zones : Array(String) | ActiveModel::Model::None = ::ActiveModel::Model::None.new, sent_at : Time | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, sent_by : String | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, rejected_at : Time | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, rejected_reason : String | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, source_service : String | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, source_reference : String | Nil | ActiveModel::Model::None = ::ActiveModel::Model::None.new, authority_id : String | ActiveModel::Model::None = ::ActiveModel::Model::None.new, user_id : String | ActiveModel::Model::None = ::ActiveModel::Model::None.new)

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

Initialize PlaceOS::Model::PendingMail from HTTP::Params.

Class methods

attributes

Returns all attribute keys.

by_authority_id(id)
Source
by_user_id(id)
Source
changes(id : UUID | Nil = nil) : ChangeFeed

Changefeed at row (if id passed) or whole table level. Returns a ChangeFeed instance which can be used to invoke async callbacks via on or use blocking Iterator via each method.

elastic
from_rs(__temp_2480 : DB::ResultSet)

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

on_error(err : Exception | IO::Error)

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

primary_key

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

Source
table_name

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

Instance methods

after_create

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

after_destroy

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

after_initialize(trusted : Bool)

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

after_save

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

after_update

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

apply_defaults

Generate code to apply default values

args

args getter

args=(value : Hash(String, Bool | Float64 | Int64 | String | Nil))

args setter

args?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

args_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

args_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

args_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

args_default

args's default value

Source
args_present?

values injected into the template. Restricted to JSON scalar values; nested objects/arrays are rejected on deserialization.

args_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

args_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

args_will_change!

Include args in the set of changed attributes, whether it has changed or not.

assign_attributes(created_at : Time | Missing = Missing, updated_at : Time | Missing = Missing, id : UUID | Missing = Missing, send_at : Time | Nil | Missing = Missing, expiry : Time | Nil | Missing = Missing, send_to : Array(String) | Missing = Missing, template : Array(String) | Missing = Missing, args : Hash(String, Bool | Float64 | Int64 | String | Nil) | Missing = Missing, resource_attachments : Array(String) | Missing = Missing, attachments : Array(String) | Missing = Missing, cc : Array(String) | Missing = Missing, bcc : Array(String) | Missing = Missing, send_from : String | Nil | Missing = Missing, reply_to : String | Nil | Missing = Missing, zones : Array(String) | Missing = Missing, sent_at : Time | Nil | Missing = Missing, sent_by : String | Nil | Missing = Missing, rejected_at : Time | Nil | Missing = Missing, rejected_reason : String | Nil | Missing = Missing, source_service : String | Nil | Missing = Missing, source_reference : String | Nil | Missing = Missing, authority_id : String | Missing = Missing, user_id : String | Missing = Missing)

Assign to multiple attributes.

assign_attributes(params : HTTP::Params | Hash(String, String) | Tuple(String, String))

Assign to multiple attributes via HTTP::Params.

assign_attributes(model : PlaceOS::Model::PendingMail)

Assign to multiple attributes from a model object

assign_attributes_from_json(json, root : String)

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

assign_attributes_from_json(json)

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

assign_attributes_from_trusted_json(json, root : String)

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

assign_attributes_from_trusted_json(json)

Assign each field from JSON if field exists in JSON and has changed in model

assign_attributes_from_trusted_yaml(yaml)

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

assign_attributes_from_yaml(yaml)

Uses the YAML parser as JSON is valid YAML

attachments

attachments getter

attachments=(value : Array(String))

attachments setter

attachments?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

attachments_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

attachments_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

attachments_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

attachments_default

attachments's default value

Source
attachments_present?
attachments_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

attachments_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

attachments_will_change!

Include attachments in the set of changed attributes, whether it has changed or not.

attributes

Returns a Hash of all attribute values

attributes_tuple

Returns a NamedTuple of all attribute values.

authority
Source
authority!
Source
authority?
Source
authority_id

authority_id getter

authority_id=(value : String)

authority_id setter

authority_id?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

authority_id_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

authority_id_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

authority_id_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

authority_id_default

authority_id's default value

Source
authority_id_present?
authority_id_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

authority_id_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

authority_id_will_change!

Include authority_id in the set of changed attributes, whether it has changed or not.

bcc

bcc getter

bcc=(value : Array(String))

bcc setter

bcc?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

bcc_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

bcc_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

bcc_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

bcc_default

bcc's default value

Source
bcc_present?
bcc_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

bcc_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

bcc_will_change!

Include bcc in the set of changed attributes, whether it has changed or not.

before_create

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

before_destroy

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

before_save

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

before_update

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

build_authority
Source
build_user
Source
cc

cc getter

cc=(value : Array(String))

cc setter

cc?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

cc_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

cc_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

cc_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

cc_default

cc's default value

Source
cc_present?
cc_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

cc_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

cc_will_change!

Include cc in the set of changed attributes, whether it has changed or not.

changed?

Check if any attributes have changed.

changed_attributes

Returns a Hash with all changed attributes.

changed_json(io : IO) : Nil

Serialize the set of changed attributes to JSON.

changed_json

Serialize the set of changed attributes to JSON.

changed_persist_attributes

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

changed_yaml(io : IO) : Nil

Serialize the set of changed attributes to YAML.

changed_yaml

Serialize the set of changed attributes to YAML.

clear_changes_information

Reset changes for all attributes.

create_authority
Source
create_authority!
Source
create_user
Source
create_user!
Source
created_at

created_at getter

created_at=(value : Time)

Setters created_at setter

created_at?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

created_at_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

created_at_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

created_at_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

created_at_default

created_at's default value

created_at_present?
created_at_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

created_at_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

created_at_will_change!

Include created_at in the set of changed attributes, whether it has changed or not.

expiry

expiry getter

expiry=(value : Time | Nil)

expiry setter

expiry_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

expiry_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

expiry_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

expiry_default

expiry's default value

Source
expiry_present?

after which the email should not be sent

expiry_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

expiry_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

expiry_will_change!

Include expiry in the set of changed attributes, whether it has changed or not.

id

id getter

id=(value : UUID)

id setter

id?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

id_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

id_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

id_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

id_default

id's default value

id_present?
id_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

id_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

id_will_change!

Include id in the set of changed attributes, whether it has changed or not.

invoke_props

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

persistent_attributes

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

primary_key

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

Source
primary_key_hash

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

rejected_at

rejected_at getter

rejected_at=(value : Time | Nil)

rejected_at setter

rejected_at_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

rejected_at_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

rejected_at_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

rejected_at_default

rejected_at's default value

Source
rejected_at_present?
rejected_at_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

rejected_at_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

rejected_at_will_change!

Include rejected_at in the set of changed attributes, whether it has changed or not.

rejected_reason

rejected_reason getter

rejected_reason=(value : String | Nil)

rejected_reason setter

rejected_reason_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

rejected_reason_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

rejected_reason_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

rejected_reason_default

rejected_reason's default value

Source
rejected_reason_present?
rejected_reason_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

rejected_reason_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

rejected_reason_will_change!

Include rejected_reason in the set of changed attributes, whether it has changed or not.

reload_authority
Source
reload_authority?
Source
reload_user
Source
reload_user?
Source
reply_to

reply_to getter

reply_to=(value : String | Nil)

reply_to setter

reply_to_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

reply_to_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

reply_to_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

reply_to_default

reply_to's default value

Source
reply_to_present?
reply_to_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

reply_to_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

reply_to_will_change!

Include reply_to in the set of changed attributes, whether it has changed or not.

resource_attachments

resource_attachments getter

resource_attachments=(value : Array(String))

resource_attachments setter

resource_attachments?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

resource_attachments_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

resource_attachments_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

resource_attachments_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

resource_attachments_default

resource_attachments's default value

Source
resource_attachments_present?

upload id references. If an upload is deleted, its id is removed from these arrays via Upload's before_destroy callback.

resource_attachments_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

resource_attachments_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

resource_attachments_will_change!

Include resource_attachments in the set of changed attributes, whether it has changed or not.

restore_attributes

Reset each attribute to their previous values and clears all changes.

send_at

send_at getter

send_at=(value : Time | Nil)

send_at setter

send_at_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

send_at_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

send_at_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

send_at_default

send_at's default value

Source
send_at_present?

schedule a send for this time (or later); nil sends as soon as processed

send_at_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

send_at_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

send_at_will_change!

Include send_at in the set of changed attributes, whether it has changed or not.

send_from

send_from getter

send_from=(value : String | Nil)

send_from setter

send_from_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

send_from_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

send_from_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

send_from_default

send_from's default value

Source
send_from_present?
send_from_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

send_from_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

send_from_will_change!

Include send_from in the set of changed attributes, whether it has changed or not.

send_to

send_to getter

send_to=(value : Array(String))

send_to setter

send_to?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

send_to_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

send_to_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

send_to_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

send_to_default

send_to's default value

Source
send_to_present?

recipients (exact match)

send_to_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

send_to_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

send_to_will_change!

Include send_to in the set of changed attributes, whether it has changed or not.

sent_at

sent_at getter

sent_at=(value : Time | Nil)

sent_at setter

sent_at_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

sent_at_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

sent_at_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

sent_at_default

sent_at's default value

Source
sent_at_present?

Monitoring: populated as the mail is processed. sent_by and rejected_reason are free-form text (e.g. a worker/service name or a human-readable reason).

sent_at_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

sent_at_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

sent_at_will_change!

Include sent_at in the set of changed attributes, whether it has changed or not.

sent_by

sent_by getter

sent_by=(value : String | Nil)

sent_by setter

sent_by_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

sent_by_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

sent_by_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

sent_by_default

sent_by's default value

Source
sent_by_present?
sent_by_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

sent_by_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

sent_by_will_change!

Include sent_by in the set of changed attributes, whether it has changed or not.

source_reference

source_reference getter

source_reference=(value : String | Nil)

source_reference setter

source_reference_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

source_reference_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

source_reference_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

source_reference_default

source_reference's default value

Source
source_reference_present?
source_reference_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

source_reference_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

source_reference_will_change!

Include source_reference in the set of changed attributes, whether it has changed or not.

source_service

source_service getter

source_service=(value : String | Nil)

source_service setter

source_service_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

source_service_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

source_service_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

source_service_default

source_service's default value

Source
source_service_present?

Free-form provenance, indexed for filtering (e.g. which service queued the mail and an external reference/correlation id).

source_service_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

source_service_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

source_service_will_change!

Include source_service in the set of changed attributes, whether it has changed or not.

table_name

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

template

template getter

template=(value : Array(String))

template setter

template?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

template_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

template_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

template_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

template_default

template's default value

Source
template_present?

names which resolve to the template to be sent

template_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

template_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

template_will_change!

Include template in the set of changed attributes, whether it has changed or not.

updated_at

updated_at getter

updated_at=(value : Time)

updated_at setter

updated_at?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

updated_at_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

updated_at_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

updated_at_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

updated_at_default

updated_at's default value

updated_at_present?
updated_at_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

updated_at_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

updated_at_will_change!

Include updated_at in the set of changed attributes, whether it has changed or not.

user
Source
user!
Source
user?
Source
user_id

user_id getter

user_id=(value : String)

user_id setter

user_id?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

user_id_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

user_id_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

user_id_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

user_id_default

user_id's default value

Source
user_id_present?
user_id_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

user_id_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

user_id_will_change!

Include user_id in the set of changed attributes, whether it has changed or not.

validate_nilability

Validate that all non-nillable fields have values.

zones

zones getter

zones=(value : Array(String))

zones setter

zones?

NOTE: use getter / getter! (not property / property!) so that the setter defined later in __create_initializer__ is the only setter on the field. Crystal's overload resolution silently fails to replace a property-defined setter with one of identical signature for generic types (e.g. Set(String)?, Array(String)?, String | Array(String)), although it does work for non-generic ones like String?. Defining the setter only once via __create_initializer__ ensures change tracking, sanitization, and custom setter blocks run uniformly across all types.

zones_assigned?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

zones_change

Returns a Tuple of the previous and the current value of an instance variable if it has changed

zones_changed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

zones_default

zones's default value

Source
zones_present?

zone id references. If a zone is deleted, its id is removed from this array via Zone's before_destroy callback.

zones_removed?

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

zones_was

An email queued for later processing/sending. Each row belongs to an authority and to the user who triggered it. The actual content is described by a template (a list of names resolving to a template) plus args injected into it. attachments/resource_attachments reference Upload ids; those ids are pruned automatically when an upload is deleted (see Upload#remove_from_pending_mail). zones references zone ids and is pruned when a zone is deleted (see Zone#remove_array_references).

zones_will_change!

Include zones in the set of changed attributes, whether it has changed or not.

Nested types