Class: Ibex::DeltaReducer::Result
- Inherits:
-
Object
- Object
- Ibex::DeltaReducer::Result
- Defined in:
- lib/ibex/delta_reducer.rb,
sig/ibex/delta_reducer.rbs
Overview
Immutable outcome of a bounded reduction.
Instance Attribute Summary collapse
- #complete ⇒ Boolean readonly
- #items ⇒ Array[untyped] readonly
- #original_size ⇒ Integer readonly
- #trials ⇒ Integer readonly
Instance Method Summary collapse
-
#initialize(items:, trials:, complete:, original_size:) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(items:, trials:, complete:, original_size:) ⇒ Result
Returns a new instance of Result.
15 16 17 18 19 20 21 |
# File 'lib/ibex/delta_reducer.rb', line 15 def initialize(items:, trials:, complete:, original_size:) @items = items.freeze @trials = trials @complete = complete @original_size = original_size freeze end |
Instance Attribute Details
#complete ⇒ Boolean (readonly)
11 12 13 |
# File 'lib/ibex/delta_reducer.rb', line 11 def complete @complete end |
#items ⇒ Array[untyped] (readonly)
9 10 11 |
# File 'lib/ibex/delta_reducer.rb', line 9 def items @items end |
#original_size ⇒ Integer (readonly)
12 13 14 |
# File 'lib/ibex/delta_reducer.rb', line 12 def original_size @original_size end |
#trials ⇒ Integer (readonly)
10 11 12 |
# File 'lib/ibex/delta_reducer.rb', line 10 def trials @trials end |