module Spree
  module ProductProperties
    class FindAvailable
      include ProductFilterable

      def initialize(scope: ProductProperty.spree_base_scopes, products_scope: Product.spree_base_scopes)
        @scope = scope
        @products_scope = products_scope
      end

      def execute
        find_available(scope, products_scope)
      end

      private

      attr_reader :scope, :products_scope
    end
  end
end
