Class: Hotfile::Record::BAR66
- Inherits:
-
Hotfile::Record
- Object
- Hotfile::Record
- Hotfile::Record::BAR66
- Defined in:
- lib/hotfile/record/BAR66.rb
Overview
Additional Information–Form of Payment Record
Instance Method Summary collapse
-
#initialize(line) ⇒ BAR66
constructor
A new instance of BAR66.
Constructor Details
#initialize(line) ⇒ BAR66
Returns a new instance of BAR66.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/hotfile/record/BAR66.rb', line 7 def initialize(line) super sequence_number, payment_information, reserved = line.scan(/ (\d) (.{50}) (.{45}) /x).flatten @data = { sequence_number: sequence_number.to_i, payment_information: payment_information.strip, reserved: reserved.strip } end |