Class: PaperTrailDiff::ScopedRootSelection::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/paper_trail_diff/scoped_root_selection.rb,
sig/generated/paper_trail_diff/scoped_root_selection.rbs

Overview

A plain class rather than Data.define, which arrived in Ruby 3.2 while this gem supports 3.1.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(records:, unreachable:) ⇒ Result

: (records: Array, unreachable: Array[Array[String]]) -> void

Parameters:

  • records: (Array[untyped])
  • unreachable: (Array[Array[String]])


36
37
38
39
40
# File 'lib/paper_trail_diff/scoped_root_selection.rb', line 36

def initialize(records:, unreachable:)
  @records = records
  @unreachable = unreachable
  freeze
end

Instance Attribute Details

#recordsArray[untyped] (readonly)

Signature:

  • Array[untyped]

Returns:

  • (Array[untyped])


32
33
34
# File 'lib/paper_trail_diff/scoped_root_selection.rb', line 32

def records
  @records
end

#unreachableArray[Array[String]] (readonly)

Signature:

  • Array[Array[String]]

Returns:

  • (Array[Array[String]])


33
34
35
# File 'lib/paper_trail_diff/scoped_root_selection.rb', line 33

def unreachable
  @unreachable
end