Class: Planik::Lohnausweis::Zulage

Inherits:
Eintrag
  • Object
show all
Defined in:
lib/lohnausweis/daten_eintrag.rb

Instance Attribute Summary

Attributes inherited from Eintrag

#ansatz, #einheit, #menge, #name

Instance Method Summary collapse

Methods inherited from Eintrag

#betrag_gerundet_to_s, #menge_to_s

Constructor Details

#initialize(name, menge, ansatz) ⇒ Zulage



84
85
86
# File 'lib/lohnausweis/daten_eintrag.rb', line 84

def initialize(name, menge, ansatz)
  super(name, menge, ansatz)
end

Instance Method Details

#ansatz_to_sObject



92
93
94
# File 'lib/lohnausweis/daten_eintrag.rb', line 92

def ansatz_to_s
  value_gerundet_to_s(ansatz)
end

#betragObject



88
89
90
# File 'lib/lohnausweis/daten_eintrag.rb', line 88

def betrag
  menge * ansatz
end