struct

Arcana::Auth::Membership

Inherits Struct < Value < Object

Constructors

create(user_id : Int64, org_id : Int64, role : Role) : Membership
Source
new(id : Int64, user_id : Int64, org_id : Int64, role : Arcana::Auth::Role, created_at : Time)
Source

Class methods

for_org(org_id : Int64) : Array(Membership)
Source
for_user(user_id : Int64) : Array(Membership)
Source

Instance methods

created_at
Source
created_at=(created_at : Time)
Source
id=(id : Int64)
Source
org_id
Source
org_id=(org_id : Int64)
Source
role
Source
role=(role : Role)
Source
user_id
Source
user_id=(user_id : Int64)
Source