Class: Planik::Lohnausweis::Fakt

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

Instance Attribute Summary collapse

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, betrag, einheit = "Fr") ⇒ Fakt

Returns a new instance of Fakt.



58
59
60
61
# File 'lib/lohnausweis/daten_eintrag.rb', line 58

def initialize(name, menge, ansatz, betrag, einheit = "Fr")
  super(name, menge, ansatz, einheit)
  @betrag = betrag
end

Instance Attribute Details

#betragObject (readonly)

Returns the value of attribute betrag.



56
57
58
# File 'lib/lohnausweis/daten_eintrag.rb', line 56

def betrag
  @betrag
end

Instance Method Details

#ansatz_to_sObject



63
64
65
# File 'lib/lohnausweis/daten_eintrag.rb', line 63

def ansatz_to_s
  ansatz
end