Class: Coopy::TableComparisonState

Inherits:
Object
  • Object
show all
Defined in:
lib/lib/coopy/table_comparison_state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTableComparisonState

Returns a new instance of TableComparisonState.



7
8
9
# File 'lib/lib/coopy/table_comparison_state.rb', line 7

def initialize
  self.reset
end

Instance Attribute Details

#aObject

Returns the value of attribute a.



12
13
14
# File 'lib/lib/coopy/table_comparison_state.rb', line 12

def a
  @a
end

#bObject

Returns the value of attribute b.



13
14
15
# File 'lib/lib/coopy/table_comparison_state.rb', line 13

def b
  @b
end

#completedObject

Returns the value of attribute completed.



14
15
16
# File 'lib/lib/coopy/table_comparison_state.rb', line 14

def completed
  @completed
end

#has_same_columnsObject

Returns the value of attribute has_same_columns.



18
19
20
# File 'lib/lib/coopy/table_comparison_state.rb', line 18

def has_same_columns
  @has_same_columns
end

#has_same_columns_knownObject

Returns the value of attribute has_same_columns_known.



19
20
21
# File 'lib/lib/coopy/table_comparison_state.rb', line 19

def has_same_columns_known
  @has_same_columns_known
end

#is_equalObject

Returns the value of attribute is_equal.



16
17
18
# File 'lib/lib/coopy/table_comparison_state.rb', line 16

def is_equal
  @is_equal
end

#is_equal_knownObject

Returns the value of attribute is_equal_known.



17
18
19
# File 'lib/lib/coopy/table_comparison_state.rb', line 17

def is_equal_known
  @is_equal_known
end

#pObject

Returns the value of attribute p.



11
12
13
# File 'lib/lib/coopy/table_comparison_state.rb', line 11

def p
  @p
end

#run_to_completionObject

Returns the value of attribute run_to_completion.



15
16
17
# File 'lib/lib/coopy/table_comparison_state.rb', line 15

def run_to_completion
  @run_to_completion
end

Instance Method Details

#resetObject



21
22
23
24
25
26
27
28
# File 'lib/lib/coopy/table_comparison_state.rb', line 21

def reset 
  @completed = false
  @run_to_completion = true
  @is_equal_known = false
  @is_equal = false
  @has_same_columns = false
  @has_same_columns_known = false
end