Class: HTML_Table_of_Property_Differences

Inherits:
HTML_Table
  • Object
show all
Defined in:
lib/html_table_of_property_differences.rb

Instance Method Summary collapse

Methods inherited from HTML_Table

#render, #save

Constructor Details

#initialize(arrData, opts = {}) ⇒ HTML_Table_of_Property_Differences



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/html_table_of_property_differences.rb', line 6

def initialize(arrData,opts={})
  @template = get_template
  @div = UUIDTools::UUID.random_create

  arrData = build_json arrData

  opts = Hash.new
  opts[:hashSort] = Hash.new
  opts[:hashSort][:col_number] = 2
  opts[:hashSort][:descending] = true

  opts[:hashFormat] = Hash.new
  opts[:hashFormat][:type] = 'BarFormat'
  opts[:hashFormat][:column] = 2

  super(arrData,opts)

end