Class: FTF::Records::Header

Inherits:
Base
  • Object
show all
Defined in:
lib/ftf/records/header.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
19
20
21
# File 'lib/ftf/records/header.rb', line 10

def fields
  {
    fiscal_id: data.fiscal_id,
    record_index: padding(index, 10),
    period: data.period,
    index: data.index,
    file_type: data.file_type,
    reserved_field1: padding("", 18),
    request_id: padding(data.request_id, 15),
    reserved_field2: padding("", 186)
  }
end

#identifierObject



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

def identifier
  "00"
end