class RockBooks::IndexHtmlPage
Attributes
context[R]
data[R]
Public Class Methods
new(report_context, metadata, run_options)
click to toggle source
# File lib/rock_books/reports/index_html_page.rb, line 11 def initialize(report_context, metadata, run_options) @context = report_context @data = { metadata: metadata, journals: context.journals, chart_of_accounts: context.chart_of_accounts, run_options: run_options, } end
Public Instance Methods
generate()
click to toggle source
# File lib/rock_books/reports/index_html_page.rb, line 21 def generate webized_generate_message_lines = template_presentation_context[:generated].split("\n") presentation_context = template_presentation_context.merge( { generated: webized_generate_message_lines}) ErbHelper.render_hashes('html/index.html.erb', data, presentation_context) end