Class: ReportsKit::Reports::Data::FormatTable

Inherits:
Object
  • Object
show all
Defined in:
lib/reports_kit/reports/data/format_table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, format:, first_column_label:, report_options:) ⇒ FormatTable

Returns a new instance of FormatTable.



7
8
9
10
11
12
# File 'lib/reports_kit/reports/data/format_table.rb', line 7

def initialize(data, format:, first_column_label:, report_options:)
  self.data = data
  self.format = format
  self.first_column_label = first_column_label
  self.report_options = report_options || {}
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



5
6
7
# File 'lib/reports_kit/reports/data/format_table.rb', line 5

def data
  @data
end

#first_column_labelObject

Returns the value of attribute first_column_label.



5
6
7
# File 'lib/reports_kit/reports/data/format_table.rb', line 5

def first_column_label
  @first_column_label
end

#formatObject

Returns the value of attribute format.



5
6
7
# File 'lib/reports_kit/reports/data/format_table.rb', line 5

def format
  @format
end

#report_optionsObject

Returns the value of attribute report_options.



5
6
7
# File 'lib/reports_kit/reports/data/format_table.rb', line 5

def report_options
  @report_options
end

Instance Method Details

#performObject



14
15
16
# File 'lib/reports_kit/reports/data/format_table.rb', line 14

def perform
  table_data
end