class Guevara::BatchHeader
Public Instance Methods
default_attributes()
click to toggle source
# File lib/guevara/batch_header.rb, line 7 def default_attributes { discretionary_data: '' } end
fields()
click to toggle source
# File lib/guevara/batch_header.rb, line 20 def fields ["5", "%<service_class>3d", "%<company_name>-16.16s", "%<discretionary_data>-20.20s", "%<company_id>10.10s", "PPD", "%<entry_description>10.10s", "%<company_date>s", "%<effective_date>s", " 1", "%<origin_id>8d", "%<number>07d"] end
format_attributes()
click to toggle source
# File lib/guevara/batch_header.rb, line 13 def format_attributes attributes[:company_date] = Date.parse(attributes[:company_date]). strftime('%y%m%d') attributes[:effective_date] = Date.parse(attributes[:effective_date]). strftime('%y%m%d') end