class Session
- Session
- Reference
- Object
Overview
Client session.
Included Modules
Extended Modules
Defined in:
models/session.crConstructors
-
.new(_account account : Account)
Allocates a new session for an account.
Class Method Summary
Instance Method Summary
- #_association_account
- #_belongs_to_setter_for_account(account_ : Account, update_associations = true) : Account
- #account(include_deleted : Bool = false, include_undone : Bool = false) : Account
- #account=(account_ : Account) : Account
- #account?(include_deleted : Bool = false, include_undone : Bool = false) : Account | Nil
- #account_id : Int64 | Nil
- #account_id=(account_id : Int64 | Nil)
- #body
- #body=(body)
- #body_json : String
- #body_json=(body_json : String)
- #delete(key)
- #generate_jwt
- #session_key : String
- #session_key=(session_key : String)
- #string(key, value, *, expires_in = nil)
- #string(key)
- #string?(key)
Instance methods inherited from module Ktistec::Model::Common
created_at : Time
created_at,
created_at=(created_at : Time)
created_at=,
updated_at : Time
updated_at,
updated_at=(updated_at : Time)
updated_at=
Instance methods inherited from module Ktistec::Model::InstanceMethods
==(other)
==,
_run_validations
_run_validations,
_save_model(skip_validation = false)
_save_model,
_serialize_graph(nodes, association = nil, index = nil, skip_associated = false)
_serialize_graph,
assign(properties : Hash(String, Any), *, _strict : Bool = false) forall Anyassign(*, _strict : Bool = false, **properties) assign, changed!(*properties : Symbol) changed!, changed?
changed?(*properties : Symbol) changed?, clear!
clear!(*properties : Symbol) clear!, destroy destroy, destroyed? destroyed?, errors errors, hash(hasher) hash, inspect(io : IO) inspect, new_record? new_record?, reload! reload!, save(skip_validation = false, skip_associated = false) save, serialize_graph(skip_associated = false) serialize_graph, table_name table_name, to_h to_h, to_json(json : JSON::Builder) to_json, to_s(io : IO) to_s, update_property(property, value) update_property, valid?(skip_associated = false) valid?, validate(skip_associated = false) validate
Constructor methods inherited from module Ktistec::Model::InstanceMethods
new(properties : Hash(String, Any), *, _strict : Bool = false) forall Anynew(*, _strict : Bool = false, **properties) new