Class: FTF::Records::Footer

Inherits:
Base
  • Object
show all
Defined in:
lib/ftf/records/footer.rb

Instance Attribute Summary

Attributes inherited from Base

#data, #index

Instance Method Summary collapse

Methods inherited from Base

#initialize, #padding, #render

Constructor Details

This class inherits a constructor from FTF::Records::Base

Instance Method Details

#fieldsObject



10
11
12
13
14
15
16
17
18
# File 'lib/ftf/records/footer.rb', line 10

def fields
  {
    fiscal_id: data.fiscal_id,
    record_index: padding(index, 10),
    product_count: padding(data.products.count, 10),
    total_records_count: padding(index, 10),
    reserved_field: padding("", 209)
  }
end

#identifierObject



6
7
8
# File 'lib/ftf/records/footer.rb', line 6

def identifier
  "99"
end