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: api_version.rb
    path of file: ./repos/libraries.io/app/models/package_manager/base
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module PackageManager
  class Base
    class ApiVersion
      attr_reader :version_number

      def initialize(
        version_number:,
        published_at:,
        runtime_dependencies_count:,
        original_license:,
        repository_sources:,
        status:
      )
        @version_number
    
      def to_version_model_attributes
        non_nillable_attributes = {
          number: @version_number,
          published_at: @published_at,
          runtime_dependencies_count: @runtime_dependencies_count,
          original_license: @original_license,
          repository_sources: @repository_sources,
        }.compact

        # If the status is currently "Removed" and a change comes in to update that status to nil/"Active",
        # Update the version's status
        non_nillable_attributes.merge({ status: @status })
      end