Class: RockBooks::TxOneAccount
- Inherits:
-
Object
- Object
- RockBooks::TxOneAccount
- Includes:
- ErbHelper, TextReportHelper
- Defined in:
- lib/rock_books/reports/tx_one_account.rb
Constant Summary
Constants included from TextReportHelper
RockBooks::TextReportHelper::SHORT_NAME_FORMAT_STRING, RockBooks::TextReportHelper::SHORT_NAME_MAX_LENGTH
Instance Attribute Summary collapse
-
#account_code ⇒ Object
readonly
Returns the value of attribute account_code.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(data, report_context) ⇒ TxOneAccount
constructor
A new instance of TxOneAccount.
Methods included from ErbHelper
erb_template, render_binding, render_hashes
Methods included from TextReportHelper
#account_code_format, #account_code_name_type_string, #account_code_name_type_string_for_code, #acct_name, #banner_line, #center, #end_date, #format_acct_amount, #format_multidoc_entry, #generation_info_display_string, #line_item_format_string, #max_account_code_length, #page_width, #section_heading, #start_date, #template_presentation_context, #total_with_ok_or_discrepancy
Constructor Details
#initialize(data, report_context) ⇒ TxOneAccount
Returns a new instance of TxOneAccount.
18 19 20 21 |
# File 'lib/rock_books/reports/tx_one_account.rb', line 18 def initialize(data, report_context) @data = data @context = report_context end |
Instance Attribute Details
#account_code ⇒ Object (readonly)
Returns the value of attribute account_code.
15 16 17 |
# File 'lib/rock_books/reports/tx_one_account.rb', line 15 def account_code @account_code end |
#context ⇒ Object (readonly)
Returns the value of attribute context.
15 16 17 |
# File 'lib/rock_books/reports/tx_one_account.rb', line 15 def context @context end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
15 16 17 |
# File 'lib/rock_books/reports/tx_one_account.rb', line 15 def data @data end |
Instance Method Details
#generate ⇒ Object
24 25 26 |
# File 'lib/rock_books/reports/tx_one_account.rb', line 24 def generate ErbHelper.render_hashes('text/tx_one_account.txt.erb', data, template_presentation_context) end |