gitlab-org--gitlab-foss/lib/gitlab/ci/ansi2json/result.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
536 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# Convertion result object class
module Gitlab
module Ci
module Ansi2json
class Result
attr_reader :lines, :state, :append, :truncated, :offset, :size, :total
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
end
end
end
end