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.



546
547
548
# File 'lib/saft/v2/html.rb', line 546

def initialize()
  @account = 
end

Instance Attribute Details

#accountObject (readonly)

Returns the value of attribute account.



544
545
546
# File 'lib/saft/v2/html.rb', line 544

def 
  @account
end

Instance Method Details

#titleObject



550
551
552
553
554
555
556
557
# File 'lib/saft/v2/html.rb', line 550

def title
  <<~TEXT
    #{.} #{.}
    Grouping category and code #{.grouping_category} / #{.grouping_code}
    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