Class: SAFT::V2::HTML::Account
- Inherits:
-
Object
- Object
- SAFT::V2::HTML::Account
- Defined in:
- lib/saft/v2/html.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
Instance Method Summary collapse
-
#initialize(account) ⇒ Account
constructor
A new instance of Account.
- #title ⇒ Object
Constructor Details
#initialize(account) ⇒ Account
Returns a new instance of Account.
546 547 548 |
# File 'lib/saft/v2/html.rb', line 546 def initialize(account) @account = account end |
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
544 545 546 |
# File 'lib/saft/v2/html.rb', line 544 def account @account end |
Instance Method Details
#title ⇒ Object
550 551 552 553 554 555 556 557 |
# File 'lib/saft/v2/html.rb', line 550 def title " \#{account.account_id} \#{account.account_description}\n Grouping category and code \#{account.grouping_category} / \#{account.grouping_code}\n opening balance \#{HTML.format_big_decimal(account.opening_debit_balance || -account.opening_credit_balance)}\n closing balance \#{HTML.format_big_decimal(account.closing_debit_balance || -account.closing_credit_balance)}\n TEXT\nend\n" |