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

Returns a new instance of Zulage.



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

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

Instance Method Details

#ansatz_to_sObject



95
96
97
# File 'lib/lohnausweis/daten_eintrag.rb', line 95

def ansatz_to_s
  value_gerundet_to_s(ansatz)
end

#betragObject



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

def betrag
  menge * ansatz
end