class User

Included Modules

Defined in:

models/user.cr:3
models/user.cr:6

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.adapter : Granite::Adapter::Base #

def self.find_or_create!(email : String) #

[View source]

Instance Method Detail

def authenticate(password : String) #

[View source]
def books #

[View source]
def created_at : Time | Nil #

def created_at! : Time #

def created_at=(created_at : Time | Nil) #

def email : String | Nil #

[View source]
def email! : String #

[View source]
def email=(email : String | Nil) #

[View source]
def hashed_password : String | Nil #

[View source]
def hashed_password! : String #

[View source]
def hashed_password=(hashed_password : String | Nil) #

[View source]
def id : Int64 | Nil #

[View source]
def id! : Int64 #

[View source]
def id=(id : Int64 | Nil) #

[View source]
def notes #

[View source]
def password #

[View source]
def password=(password : Nil | String) #

[View source]
def password_changed? #

[View source]
def tokens : Tokens | Nil #

[View source]
def tokens! : Tokens #

[View source]
def tokens=(child) #

[View source]
def updated_at : Time | Nil #

def updated_at! : Time #

def updated_at=(updated_at : Time | Nil) #

def valid_password_size? #

[View source]