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.



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

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.



53
54
55
# File 'lib/lohnausweis/daten_eintrag.rb', line 53

def betrag
  @betrag
end

Instance Method Details

#ansatz_to_sObject



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

def ansatz_to_s
  ansatz
end