class CremulMessage
Attributes
header[R]
The message_index
is the index number of the Cremul
message in the file.
lines[R]
The message_index
is the index number of the Cremul
message in the file.
message_index[R]
The message_index
is the index number of the Cremul
message in the file.
number_of_lines[R]
The message_index
is the index number of the Cremul
message in the file.
Public Class Methods
new(message_number, segments)
click to toggle source
# File lib/cremul/cremul_message.rb, line 11 def initialize(message_number, segments) @message_index = message_number @header = CremulHeader.new(segments) @lines = [] @number_of_lines = number_of_lines_in_message(segments) # instantiate the line items line_segment_pos = next_line_segment_index(segments, 0) @number_of_lines.times do |n| CremulParser.logger.info "CremulParser: file=#{CremulParser.filename}, parsing line #{n+1}" @lines << CremulLine.new(n+1, segments, line_segment_pos) line_segment_pos = next_line_segment_index(segments, line_segment_pos+1) end end