module Aptible module Auth class Role < Resource belongs_to :organization has_many :memberships field :id field :name field :privileged, type: Aptible::Resource::Boolean field :created_at, type: Time field :updated_at, type: Time def users @users ||= memberships.map(&:users).uniq end end end end