Class: Datev::Header
Constant Summary collapse
- DEFAULT_ATTRIBUTES =
{ 'DATEV-Format-KZ' => 'EXTF', 'Versionsnummer' => 510, 'Datenkategorie' => 21, 'Formatname' => 'Buchungsstapel', 'Formatversion' => 7, 'Erzeugt am' => Time.now.utc, 'Sachkontenlänge' => 4, 'Bezeichnung' => 'Buchungen', 'Buchungstyp' => 1, 'WKZ' => 'EUR' }
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Header
constructor
A new instance of Header.
Methods inherited from Base
#[], field, field_by_name, #output
Constructor Details
#initialize(attributes = {}) ⇒ Header
Returns a new instance of Header.
18 19 20 21 |
# File 'lib/datev/header.rb', line 18 def initialize(attributes={}) raise ArgumentError.new('Hash required') unless attributes.is_a?(Hash) super DEFAULT_ATTRIBUTES.merge(attributes) end |