module RotaGeneration
  class OrganisationWriter
    def initialize(organisations, container_path)
      @organisations = organisations
      @container_path = container_path
    end

    def write!
      File.open(File.join(container_path, "firms.lp"), "w+") do |f|
        organisations.each do |o|
          f.write("firm(\"#{o.name}\").\n")
        end
      end
    end

    private

    attr_reader :organisations, :container_path
  end
end

module RotaGeneration
  class OrganisationWriter
    def initialize(organisations, container_path)
      @organisations = organisations
      @container_path = container_path
    end

    def write!
      File.open(File.join(container_path, "firms.lp"), "w+") do |f|
        organisations.each do |o|
          f.write("firm(\"#{o.uid}\").\n")
        end
      end
    end

    private

    attr_reader :organisations, :container_path
  end
end

Change OrganisationWriter to write UID rather than name
Change OrganisationWriter to write UID rather than name
