You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: oso.rb
    path of file: ./repos/oso/languages/ruby/lib/oso
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'set'
require_relative 'polar/polar'

module Oso
  # oso authorization API.
  class Oso < Polar::Polar
    # Create an Oso instance, which is used to configure and enforce an Oso
    # policy in an app.
    #
    # @param forbidden_error [Class] Optionally override the "forbidden" error
    #   class thrown by the `authorize*` methods. Defaults to
    #   {Oso::ForbiddenError}.
    # @param not_found_error [Class] Option
    
    def authorized_actions(actor, resource, allow_wildcard: false) # rubocop:disable Metrics/MethodLength
      results = query_rule('allow', actor, Polar::Variable.new('action'), resource)
      actions = Set.new
      results.each do |result|
        action = result['action']
        if action.is_a?(Polar::Variable)
          return Set['*'] if allow_wildcard

          raise ::Oso::Error,
                'The result of authorized_actions() contained an '\
                '"unconstrained" action that could represent any '\
                'action, but allow_wildcard was set to False. To fix, '\
                'set allow_wildcard to True and compare with the "*" '\
                'string.'
        end
        actions.add(action)
      end