Class: Gitlab::Ci::Ansi2json::Result
- Inherits:
-
Object
- Object
- Gitlab::Ci::Ansi2json::Result
- Defined in:
- lib/gitlab/ci/ansi2json/result.rb
Instance Attribute Summary collapse
-
#append ⇒ Object
readonly
Returns the value of attribute append.
-
#lines ⇒ Object
readonly
Returns the value of attribute lines.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
-
#truncated ⇒ Object
readonly
Returns the value of attribute truncated.
Instance Method Summary collapse
-
#initialize(lines:, state:, append:, truncated:, offset:, stream:) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(lines:, state:, append:, truncated:, offset:, stream:) ⇒ Result
Returns a new instance of Result.
10 11 12 13 14 15 16 17 18 |
# File 'lib/gitlab/ci/ansi2json/result.rb', line 10 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 |
Instance Attribute Details
#append ⇒ Object (readonly)
Returns the value of attribute append.
8 9 10 |
# File 'lib/gitlab/ci/ansi2json/result.rb', line 8 def append @append end |
#lines ⇒ Object (readonly)
Returns the value of attribute lines.
8 9 10 |
# File 'lib/gitlab/ci/ansi2json/result.rb', line 8 def lines @lines end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
8 9 10 |
# File 'lib/gitlab/ci/ansi2json/result.rb', line 8 def offset @offset end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
8 9 10 |
# File 'lib/gitlab/ci/ansi2json/result.rb', line 8 def size @size end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
8 9 10 |
# File 'lib/gitlab/ci/ansi2json/result.rb', line 8 def state @state end |
#total ⇒ Object (readonly)
Returns the value of attribute total.
8 9 10 |
# File 'lib/gitlab/ci/ansi2json/result.rb', line 8 def total @total end |
#truncated ⇒ Object (readonly)
Returns the value of attribute truncated.
8 9 10 |
# File 'lib/gitlab/ci/ansi2json/result.rb', line 8 def truncated @truncated end |