class Planik::Lohnausweis::Abzug
Public Class Methods
new(name, menge, ansatz)
click to toggle source
ansatz = prozent
Calls superclass method
Planik::Lohnausweis::Eintrag::new
# File lib/lohnausweis/daten_eintrag.rb, line 103 def initialize name, menge, ansatz super(name, menge, ansatz) end
Public Instance Methods
ansatz_to_s()
click to toggle source
# File lib/lohnausweis/daten_eintrag.rb, line 115 def ansatz_to_s x = format('%.2f', ansatz) "#{x}%" end
betrag()
click to toggle source
# File lib/lohnausweis/daten_eintrag.rb, line 107 def betrag menge * (ansatz / 100) end
menge_to_s()
click to toggle source
# File lib/lohnausweis/daten_eintrag.rb, line 111 def menge_to_s menge.nil? ? nil : value_gerundet_to_s(menge) end