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: cpu.rb
    path of file: ./repos/rorvswild/lib/rorvswild/metrics
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module RorVsWild
  class Metrics
    class Cpu
      attr_reader :user, :
    
        def self.parse(string)
          for row in string.lines
            if row.start_with?("cpu ")
              array = row.split[1..-1].map(&:to_i)[0,10]
              array.fill(0, array.size, 10 - array.size) if array.size < 10
              return new(*array)
            end