module Authzed::Api::V0::UserPatch

Utility method for creating usersets

Public Class Methods

included(base) click to toggle source
# File lib/authzed/api/v0/client.rb, line 45
def self.included(base)
  def base.for(namespace:, object_id:)
    Authzed::Api::V0::User.new(
      userset: Authzed::Api::V0::ObjectAndRelation.new(
        namespace: namespace,
        object_id: object_id,
        relation: '...',
      )
    )
  end
end