Class: Guevara::BatchControl

Inherits:
Row
  • Object
show all
Defined in:
lib/guevara/batch_control.rb

Instance Attribute Summary

Attributes inherited from Row

#attributes

Instance Method Summary collapse

Methods inherited from Row

#format_attributes, #initialize, #to_s

Constructor Details

This class inherits a constructor from Guevara::Row

Instance Method Details

#default_attributesObject



6
7
8
# File 'lib/guevara/batch_control.rb', line 6

def default_attributes
  { discretionary_data: '' }
end

#fieldsObject



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/guevara/batch_control.rb', line 10

def fields
  ["8",
   "%<service_class>3d",
   "%<entry_count>06d",
   "%<entry_hash>010d",
   "%<total_debit>012d",
   "%<total_credit>012d",
   "%<company_id>10.10s",
   " " * 25,  # Authentication and reserved fields.
   "%<origin_id>8d",
   "%<number>07d"]
end