Class: Hotfile::Record::BAR67
- Inherits:
-
Hotfile::Record
- Object
- Hotfile::Record
- Hotfile::Record::BAR67
- Defined in:
- lib/hotfile/record/BAR67.rb
Overview
Additional Information–Taxes ! not tested, I hope this code works at all…
Instance Method Summary collapse
-
#initialize(line) ⇒ BAR67
constructor
A new instance of BAR67.
Constructor Details
#initialize(line) ⇒ BAR67
Returns a new instance of BAR67.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/hotfile/record/BAR67.rb', line 8 def initialize(line) super sequence_number, info_id, additional_info, reserved = line.scan(/ (\d{2}) (.{4}) (.{70}) (.{20}) /x).flatten @data = { sequence_number: sequence_number.to_i, info_id: info_id.strip, additional_info: additional_info.strip, reserved: reserved.strip } end |