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: result.rb
    path of file: ./repos/gitlabhq/lib/gitlab/ci/ansi2json
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# Convertion result object class
module Gitlab
  module Ci
    module Ansi2json
      class Resul
    
        def initialize(lines:, state:, append:, truncated:, offset:, stream:)
          @lines = lines
          @state = state
          @append = append
          @truncated = truncated
          @offset = offset
          @size = stream.tell - offset
          @total = stream.size
        end