class PlaceOS::Model::UserAuthLookup
- PlaceOS::Model::UserAuthLookup
- PlaceOS::Model::ModelBase
- RethinkORM::Base
- ActiveModel::Model
- Reference
- Object
Included Modules
- RethinkORM::Timestamps
Defined in:
models/user_auth_lookup.crConstant Summary
-
CALLBACKS =
{before_save: [] of Nil, after_save: [] of Nil, before_create: [do self.created_at = self.updated_at = Time.utc end, :generate_id] 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: [] of Nil}
-
DEFAULTS =
{created_at => -> do Time.utc end, updated_at => -> do Time.utc end} of Nil => Nil
-
FIELDS =
{created_at => {klass: Time, converter: Time::EpochConverter, mass_assign: true, should_persist: true, tags: nil}, updated_at => {klass: Time, converter: Time::EpochConverter, mass_assign: true, should_persist: true, tags: nil}, uid => {klass: String, converter: nil, mass_assign: true, should_persist: true, tags: nil}, provider => {klass: String, converter: nil, mass_assign: true, should_persist: true, tags: nil}, user_id => {klass: String, converter: nil, mass_assign: true, should_persist: true, tags: {parent: "User", es_type: "keyword"}}, authority_id => {klass: String, converter: nil, mass_assign: true, should_persist: true, tags: {parent: "Authority", es_type: "keyword"}}, id => {klass: String, converter: nil, mass_assign: false, should_persist: true, tags: {es_type: "keyword"}}} of Nil => Nil
-
HAS_KEYS =
[true]
-
LOCAL_FIELDS =
{created_at => {klass: Time, converter: Time::EpochConverter, mass_assign: true, should_persist: true, tags: nil}, updated_at => {klass: Time, converter: Time::EpochConverter, mass_assign: true, should_persist: true, tags: nil}, uid => {klass: String, converter: nil, mass_assign: true, should_persist: true, tags: nil}, provider => {klass: String, converter: nil, mass_assign: true, should_persist: true, tags: nil}, user_id => {klass: String, converter: nil, mass_assign: true, should_persist: true, tags: {parent: "User", es_type: "keyword"}}, authority_id => {klass: String, converter: nil, mass_assign: true, should_persist: true, tags: {parent: "Authority", es_type: "keyword"}}} of Nil => Nil
-
Macro level constants
-
PERSIST =
{created_at => {klass: Time, converter: Time::EpochConverter, mass_assign: true, should_persist: true, tags: nil}, updated_at => {klass: Time, converter: Time::EpochConverter, mass_assign: true, should_persist: true, tags: nil}, uid => {klass: String, converter: nil, mass_assign: true, should_persist: true, tags: nil}, provider => {klass: String, converter: nil, mass_assign: true, should_persist: true, tags: nil}, user_id => {klass: String, converter: nil, mass_assign: true, should_persist: true, tags: {parent: "User", es_type: "keyword"}}, authority_id => {klass: String, converter: nil, mass_assign: true, should_persist: true, tags: {parent: "Authority", es_type: "keyword"}}, id => {klass: String, converter: nil, mass_assign: false, should_persist: true, tags: {es_type: "keyword"}}} of Nil => Nil
-
SETTERS =
{created_at => nil, updated_at => nil, uid => nil, provider => nil, user_id => nil, authority_id => nil} of Nil => Nil
Constructors
-
.from_trusted_yaml(string_or_io : String | IO) : self
Process attributes must be called while constants are in scope
-
.new(__temp_1343 : YAML::ParseContext, __temp_1344 : YAML::Nodes::Node, _dummy : Nil, trusted = false)
Process attributes must be called while constants are in scope
-
.new(__temp_1342 : JSON::PullParser, trusted = false)
Process attributes must be called while constants are in scope
-
.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
Process attributes must be called while constants are in scope
-
.new(created_at : Time | Nil = nil, updated_at : Time | Nil = nil, uid : String | Nil = nil, provider : String | Nil = nil, user_id : String | Nil = nil, authority_id : String | Nil = nil, id : String | Nil = nil)
Process attributes must be called while constants are in scope
-
.new(params : HTTP::Params | Hash(String, String) | Tuple(String, String))
Accept HTTP params
Class Method Summary
-
.attributes
You may want a list of available attributes
-
.by_authority_id(id)
Look up instances of this model dependent on the foreign key
-
.by_user_id(id)
Look up instances of this model dependent on the foreign key
- .elastic
-
.from_trusted_json(json)
Process attributes must be called while constants are in scope
- .table_name
Instance Method Summary
- #__authority : Authority | Nil
- #__authority=(__authority : Authority | Nil)
- #__user : User | Nil
- #__user=(__user : User | Nil)
-
#after_create
Base class for all Engine models
-
#after_destroy
Base class for all Engine models
-
#after_save
Base class for all Engine models
-
#after_update
Base class for all Engine models
-
#apply_defaults
Generate code to apply default values
-
#assign_attributes(created_at : Time | Nil = nil, updated_at : Time | Nil = nil, uid : String | Nil = nil, provider : String | Nil = nil, user_id : String | Nil = nil, authority_id : String | Nil = nil, id : String | Nil = nil)
Process attributes must be called while constants are in scope
-
#assign_attributes(params : HTTP::Params | Hash(String, String) | Tuple(String, String))
Accept HTTP params
-
#assign_attributes_from_json(json)
Process attributes must be called while constants are in scope
-
#assign_attributes_from_trusted_json(json)
Process attributes must be called while constants are in scope
-
#assign_attributes_from_trusted_yaml(yaml)
Process attributes must be called while constants are in scope
-
#assign_attributes_from_yaml(yaml)
Uses the YAML parser as JSON is valid YAML
-
#attributes
Returns a Hash of all the attribute values
-
#attributes_tuple
Returns a NamedTuple of all attribute values
-
#authority : Authority | Nil
Retrieves the parent relationship
- #authority! : Authority
-
#authority=(parent : Authority)
Sets the parent relationship
-
#authority_id : String?
Process attributes must be called while constants are in scope
-
#authority_id=(value : String | Nil)
Process attributes must be called while constants are in scope
-
#authority_id_change
Process attributes must be called while constants are in scope
-
#authority_id_changed?
Process attributes must be called while constants are in scope
-
#authority_id_default : String | Nil
Attribute default value
-
#authority_id_was : String?
Process attributes must be called while constants are in scope
-
#authority_id_will_change!
Process attributes must be called while constants are in scope
-
#before_create
Base class for all Engine models
-
#before_destroy
Base class for all Engine models
-
#before_save
Base class for all Engine models
-
#before_update
Base class for all Engine models
-
#changed?
Process attributes must be called while constants are in scope
-
#changed_attributes
Process attributes must be called while constants are in scope
-
#changed_json
Process attributes must be called while constants are in scope
-
#changed_yaml
Process attributes must be called while constants are in scope
-
#clear_changes_information
Process attributes must be called while constants are in scope
-
#created_at : Time?
Process attributes must be called while constants are in scope
-
#created_at=(value : Time | Nil)
Override the map json
-
#created_at_change
Process attributes must be called while constants are in scope
-
#created_at_changed?
Process attributes must be called while constants are in scope
-
#created_at_default : Time | Nil
Attribute default value
-
#created_at_was : Time?
Process attributes must be called while constants are in scope
-
#created_at_will_change!
Process attributes must be called while constants are in scope
- #generate_id
-
#id : String?
Process attributes must be called while constants are in scope
-
#id=(value : String | Nil)
Process attributes must be called while constants are in scope
-
#id_change
Process attributes must be called while constants are in scope
-
#id_changed?
Process attributes must be called while constants are in scope
-
#id_was : String?
Process attributes must be called while constants are in scope
-
#id_will_change!
Process attributes must be called while constants are in scope
-
#persistent_attributes
Returns a hash of all attributes that may be persisted
-
#provider : String?
Process attributes must be called while constants are in scope
-
#provider=(value : String | Nil)
Process attributes must be called while constants are in scope
-
#provider_change
Process attributes must be called while constants are in scope
-
#provider_changed?
Process attributes must be called while constants are in scope
-
#provider_default : String | Nil
Attribute default value
-
#provider_was : String?
Process attributes must be called while constants are in scope
-
#provider_will_change!
Process attributes must be called while constants are in scope
- #reset_associations
-
#restore_attributes
Process attributes must be called while constants are in scope
-
#run_create_callbacks(&)
Wrap a block with callbacks for the appropriate crud operation
-
#run_destroy_callbacks(&)
Base class for all Engine models
-
#run_save_callbacks(&)
Base class for all Engine models
-
#run_update_callbacks(&)
Base class for all Engine models
- #table_name
-
#to_json(json : JSON::Builder)
Process attributes must be called while constants are in scope
-
#to_yaml(__temp_1376 : YAML::Nodes::Builder)
Process attributes must be called while constants are in scope
-
#uid : String?
Process attributes must be called while constants are in scope
-
#uid=(value : String | Nil)
Process attributes must be called while constants are in scope
-
#uid_change
Process attributes must be called while constants are in scope
-
#uid_changed?
Process attributes must be called while constants are in scope
-
#uid_default : String | Nil
Attribute default value
-
#uid_was : String?
Process attributes must be called while constants are in scope
-
#uid_will_change!
Process attributes must be called while constants are in scope
-
#updated_at : Time?
Process attributes must be called while constants are in scope
-
#updated_at=(value : Time | Nil)
Process attributes must be called while constants are in scope
-
#updated_at_change
Process attributes must be called while constants are in scope
-
#updated_at_changed?
Process attributes must be called while constants are in scope
-
#updated_at_default : Time | Nil
Attribute default value
-
#updated_at_was : Time?
Process attributes must be called while constants are in scope
-
#updated_at_will_change!
Process attributes must be called while constants are in scope
-
#user : User | Nil
Retrieves the parent relationship
- #user! : User
-
#user=(parent : User)
Sets the parent relationship
-
#user_id : String?
Process attributes must be called while constants are in scope
-
#user_id=(value : String | Nil)
Process attributes must be called while constants are in scope
-
#user_id_change
Process attributes must be called while constants are in scope
-
#user_id_changed?
Process attributes must be called while constants are in scope
-
#user_id_default : String | Nil
Attribute default value
-
#user_id_was : String?
Process attributes must be called while constants are in scope
-
#user_id_will_change!
Process attributes must be called while constants are in scope
Instance methods inherited from class PlaceOS::Model::ModelBase
after_create
after_create,
after_destroy
after_destroy,
after_save
after_save,
after_update
after_update,
apply_defaults
apply_defaults,
assign_attributes(id : String | Nil = nil)assign_attributes(params : HTTP::Params | Hash(String, String) | Tuple(String, String)) assign_attributes, attributes attributes, attributes_tuple attributes_tuple, before_create before_create, before_destroy before_destroy, before_save before_save, before_update before_update, persistent_attributes persistent_attributes, run_create_callbacks(&) run_create_callbacks, run_destroy_callbacks(&) run_destroy_callbacks, run_save_callbacks(&) run_save_callbacks, run_update_callbacks(&) run_update_callbacks
Class methods inherited from class PlaceOS::Model::ModelBase
attributes
attributes
Constructor Detail
Process attributes must be called while constants are in scope
Process attributes must be called while constants are in scope
Process attributes must be called while constants are in scope
Process attributes must be called while constants are in scope
Process attributes must be called while constants are in scope
Accept HTTP params
Class Method Detail
Instance Method Detail
Base class for all Engine models
Base class for all Engine models
Base class for all Engine models
Base class for all Engine models
Process attributes must be called while constants are in scope
Accept HTTP params
Process attributes must be called while constants are in scope
Process attributes must be called while constants are in scope
Process attributes must be called while constants are in scope
Process attributes must be called while constants are in scope
Base class for all Engine models
Base class for all Engine models
Base class for all Engine models
Base class for all Engine models
Process attributes must be called while constants are in scope
Base class for all Engine models
Base class for all Engine models
Base class for all Engine models
Process attributes must be called while constants are in scope
Process attributes must be called while constants are in scope