struct

Arcana::Auth::Org

Inherits Struct < Value < Object

An organization — the unit of isolation for billing, quotas, and (eventually) tenancy. Users belong to orgs via memberships.

Constructors

create(slug : String, name : String, is_system : Bool = false) : Org

Create a new org. Returns the created Org. Slug must match [a-z][a-z0-9-]*.

Source
new(id : Int64, slug : String, name : String, created_at : Time, is_system : Bool = false)
Source

Class methods

find(id : Int64) : Org | Nil
Source
find_by_slug(slug : String) : Org | Nil
Source
list
Source

Instance methods

created_at
Source
created_at=(created_at : Time)
Source
id=(id : Int64)
Source
is_system
Source
is_system=(is_system : Bool)
Source
name
Source
name=(name : String)
Source
slug
Source
slug=(slug : String)
Source