class

User

Inherits Crypto < YAML::Serializable < JSON::Serializable < Granite::Base < Granite::ConnectionManagement < Granite::Querying < Granite::Select < Granite::Migrator < Granite::ValidationHelpers < Granite::Validators < Granite::Transactions < Granite::Tables < Granite::Columns < Granite::Callbacks < Granite::Associations < Reference < Object

Constructors

new(pull : JSON::PullParser)
new(*, __pull_for_json_serializable pull : JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)

Instance methods

authenticate(password : String)
Source
created_at
created_at!
created_at=(created_at : Time | Nil)
email
Source
email!
Source
email=(email : String | Nil)
Source
hashed_password
Source
hashed_password!
Source
hashed_password=(hashed_password : String | Nil)
Source
id=(id : Int64 | Nil)
Source
name
Source
name!
Source
name=(name : String | Nil)
Source
password
Source
password=(password : Nil | String)
Source
password_changed?
Source
updated_at
updated_at!
updated_at=(updated_at : Time | Nil)
username
Source
username!
Source
username=(username : String | Nil)
Source
valid_password_size?
Source