Class: SAFT::V2::HTML::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/saft/v2/html.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = 
end

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



536
537
538
# File 'lib/saft/v2/html.rb', line 536

def 
  @account
end

Instance Method Details

#titleObject



542
543
544
545
546
547
548
549
# File 'lib/saft/v2/html.rb', line 542

def title
  <<~TEXT
    #{.} #{.}
    Std account #{.}
    opening balance #{HTML.format_big_decimal(.opening_debit_balance || -.opening_credit_balance)}
    closing balance #{HTML.format_big_decimal(.closing_debit_balance || -.closing_credit_balance)}
  TEXT
end