Class: NFE::Header

Inherits:
Register show all
Defined in:
lib/header.rb

Constant Summary collapse

REQUIRED_FIELDS =
[
    :layout_version,
    :municipal_registration,
    :start_date,
    :end_date
]
VALID_FIELDS =
REQUIRED_FIELDS
DEFAULTS =
{
    layout_version: "002",
    start_date: Time.now.to_date.strftime("%Y%m%d"),
    end_date:   Time.now.to_date.strftime("%Y%m%d")
}

Constants inherited from Register

Register::VALID_TYPES

Instance Attribute Summary

Attributes inherited from Register

#fields, #required_fields, #type

Instance Method Summary collapse

Methods inherited from Register

#<<, #to_hash, #to_s, #valid?, #valid_register_field?, #validate!

Constructor Details

#initializeHeader

Returns a new instance of Header.



18
19
20
# File 'lib/header.rb', line 18

def initialize
    super 1
end