PlaceOS::Model::SubModel
Inherits ActiveModel::Validation < ActiveModel::Model < DB::Mappable < DB::Serializable < YAML::Serializable < JSON::Serializable < Reference < Object
Validation for embedded objects in Engine models
Constants
Constructors
Validation for embedded objects in Engine models
Class methods
attributes
Returns all attribute keys.
Instance methods
apply_defaults
Generate code to apply default values
Assign to multiple attributes via HTTP::Params.
assign_attributes(model : PlaceOS::Model::SubModel)
Assign to multiple attributes from a model object
assign_attributes
Assign to multiple attributes.
attributes
Returns a Hash of all attribute values
attributes_tuple
Returns a NamedTuple of all attribute values.
persistent_attributes
Returns a Hash of all attributes that can be persisted.