1 require_dependency "locmare/profiler/header"
2 require_dependency "locmare/profiler/column"
3 require_dependency "locmare/profiler/association"
7 attr :profiler_manifest, :item_name, :item, :operators, :template_dir,
8 :header, :columns, :associations
9 def initialize item_name, item, operators
10 @item_name = item_name
12 @operators = operators
13 # feasible show parsed extend data
16 @profiler_manifest = LocalManifest.manifest.profilers[@item_name]
17 @template_dir = 'templates/r/profiler/'
18 @header = Header.new self
19 @columns = @profiler_manifest.column_names.map {|column_name|
20 Column.new self, column_name
22 @associations = Association.new self, @profiler_manifest.associations
26 ::Manifest::item_name_to_model @item_name
29 def template_file_name
34 self.template_dir + self.template_file_name
37 def header_template_file_name
41 def header_template_name
42 self.template_dir + self.header_template_file_name
45 def columns_template_file_name
49 def columns_template_name
50 self.template_dir + self.columns_template_file_name
53 def associations_template_file_name
57 def associations_template_name
58 self.template_dir + self.associations_template_file_name