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.
538 539 540 |
# File 'lib/saft/v2/html.rb', line 538 def initialize(account) @account = account end |
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
536 537 538 |
# File 'lib/saft/v2/html.rb', line 536 def account @account end |
Instance Method Details
#title ⇒ Object
542 543 544 545 546 547 548 549 |
# File 'lib/saft/v2/html.rb', line 542 def title <<~TEXT #{account.account_id} #{account.account_description} Std account #{account.standard_account_id} opening balance #{HTML.format_big_decimal(account.opening_debit_balance || -account.opening_credit_balance)} closing balance #{HTML.format_big_decimal(account.closing_debit_balance || -account.closing_credit_balance)} TEXT end |