class Kemal::Authorizer::UserStorableObject

Overview

Kemal::Authorizer::UserStorableObject is the default type used in the different authorize handlers.

Included Modules

Defined in:

kemal-authorizer/user_object.cr

Constructors

Instance Method Summary

Instance methods inherited from class Kemal::Authorizer::StorableUser

is_admin : Bool is_admin, is_admin=(is_admin : Bool) is_admin=

Constructor methods inherited from class Kemal::Authorizer::StorableUser

new(pull : JSON::PullParser) new

Constructor Detail

def self.new(id : Int32, email : String, is_admin : Bool) #

[View source]
def self.new(id : Int32, email : String) #

Creates a new Kemal::Authorizer::UserStorableObject. This user object is by default not admin.


[View source]
def self.new(pull : JSON::PullParser) #

Kemal::Authorizer::UserStorableObject is the default type used in the different authorize handlers.


[View source]

Instance Method Detail

def email : String #

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

[View source]
def id : Int32 #

[View source]
def id=(id : Int32) #

[View source]