Class: Linkage::Configuration::DSL::VisualComparisonWrapper
- Inherits:
-
Object
- Object
- Linkage::Configuration::DSL::VisualComparisonWrapper
- Defined in:
- lib/linkage/configuration.rb
Overview
Class for visually comparing matched records
Instance Attribute Summary collapse
-
#dsl ⇒ Object
readonly
Returns the value of attribute dsl.
-
#lhs ⇒ Object
readonly
Returns the value of attribute lhs.
-
#rhs ⇒ Object
readonly
Returns the value of attribute rhs.
Instance Method Summary collapse
-
#initialize(dsl, lhs, rhs) ⇒ VisualComparisonWrapper
constructor
A new instance of VisualComparisonWrapper.
Constructor Details
#initialize(dsl, lhs, rhs) ⇒ VisualComparisonWrapper
Returns a new instance of VisualComparisonWrapper.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/linkage/configuration.rb', line 8 def initialize(dsl, lhs, rhs) @dsl = dsl @lhs = lhs @rhs = rhs if @lhs.is_a?(DataWrapper) && @rhs.is_a?(DataWrapper) if @lhs.side == @rhs.side raise ArgumentError, "Can't visually compare two data sources on the same side" end else raise ArgumentError, "Must supply two data sources for visual comparison" end @dsl.add_visual_comparison(self) end |
Instance Attribute Details
#dsl ⇒ Object (readonly)
Returns the value of attribute dsl.
6 7 8 |
# File 'lib/linkage/configuration.rb', line 6 def dsl @dsl end |
#lhs ⇒ Object (readonly)
Returns the value of attribute lhs.
6 7 8 |
# File 'lib/linkage/configuration.rb', line 6 def lhs @lhs end |
#rhs ⇒ Object (readonly)
Returns the value of attribute rhs.
6 7 8 |
# File 'lib/linkage/configuration.rb', line 6 def rhs @rhs end |