Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
PlaceOS::Model::Repository
Inherits PlaceOS::Model::Timestamps < PlaceOS::Model::ModelBase < PlaceOS::Model::Associations < Neuroplastic < 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
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Constants
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
macro level key => type
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Constructors
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
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">
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Class methods
Returns all attribute keys.
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.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Instance methods
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Generate code to apply default values
Assign to multiple attributes.
Assign to multiple attributes via HTTP::Params.
Assign to multiple attributes from a model object
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Assign each field from JSON if field exists in JSON and has changed in model
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Uses the YAML parser as JSON is valid YAML
Returns a Hash of all attribute values
Returns a NamedTuple of all attribute values.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
branch getter
branch setter
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.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include branch in the set of changed attributes, whether it has changed or not.
Check if any attributes have changed.
Returns a Hash with all changed attributes.
Serialize the set of changed attributes to JSON.
Serialize the set of changed attributes to JSON.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Serialize the set of changed attributes to YAML.
Serialize the set of changed attributes to YAML.
Reset changes for all attributes.
commit_hash getter
commit_hash setter
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.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include commit_hash in the set of changed attributes, whether it has changed or not.
created_at getter
Setters
created_at setter
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.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
created_at's default value
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include created_at in the set of changed attributes, whether it has changed or not.
deployed_commit_hash getter
deployed_commit_hash setter
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include deployed_commit_hash in the set of changed attributes, whether it has changed or not.
description getter
description setter
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.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include description in the set of changed attributes, whether it has changed or not.
error_message getter
error_message setter
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include error_message in the set of changed attributes, whether it has changed or not.
folder_name getter
folder_name setter
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.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
folder_name may only contain valid path characters
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include folder_name in the set of changed attributes, whether it has changed or not.
has_runtime_error getter
has_runtime_error setter
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.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Error Indicators
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include has_runtime_error in the set of changed attributes, whether it has changed or not.
id getter
id setter
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
id's default value
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include id in the set of changed attributes, whether it has changed or not.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
name getter
name setter
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.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include name in the set of changed attributes, whether it has changed or not.
password getter
password setter
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include password in the set of changed attributes, whether it has changed or not.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
release getter
release setter
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.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Whether the repository is pinned to a release asset
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include release in the set of changed attributes, whether it has changed or not.
repo_type getter
repo_type setter
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.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include repo_type in the set of changed attributes, whether it has changed or not.
Reset each attribute to their previous values and clears all changes.
root_path getter
root_path setter
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include root_path in the set of changed attributes, whether it has changed or not.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
updated_at getter
updated_at setter
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.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
updated_at's default value
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include updated_at in the set of changed attributes, whether it has changed or not.
uri getter
uri setter
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.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include uri in the set of changed attributes, whether it has changed or not.
username getter
username setter
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Returns a Tuple of the previous and the current value of an instance variable if it has changed
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Pins engine's driver sources to a specific repository state. Enables external driver management from a VCS.
Include username in the set of changed attributes, whether it has changed or not.
Validate that all non-nillable fields have values.