Class: RockBooks::BsIsSectionData
- Inherits:
-
Struct
- Object
- Struct
- RockBooks::BsIsSectionData
- Defined in:
- lib/rock_books/reports/data/bs_is_section_data.rb,
lib/rock_books/reports/data/bs_is_section_data.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#journals_acct_totals ⇒ Object
Returns the value of attribute journals_acct_totals.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context
3 4 5 |
# File 'lib/rock_books/reports/data/bs_is_section_data.rb', line 3 def context @context end |
#journals_acct_totals ⇒ Object
Returns the value of attribute journals_acct_totals
3 4 5 |
# File 'lib/rock_books/reports/data/bs_is_section_data.rb', line 3 def journals_acct_totals @journals_acct_totals end |
#type ⇒ Object
Returns the value of attribute type
3 4 5 |
# File 'lib/rock_books/reports/data/bs_is_section_data.rb', line 3 def type @type end |
Instance Method Details
#fetch ⇒ Object
6 7 8 9 10 11 |
# File 'lib/rock_books/reports/data/bs_is_section_data.rb', line 6 def fetch { acct_totals: totals, total: totals.map(&:last).sum.round(2) } end |