example/parse.rb in X12-0.0.5 vs example/parse.rb in X12-0.1.0
- old
+ new
@@ -33,9 +33,10 @@
'66*1~AK3*NM1*8*L1010_1*8~AK4*1:0*66*1~AK4*1:1*66*1~AK3*'\
'NM1*8*L1010_2*8~AK4*2:0*66*1~AK5*R*5~AK9*R*1*1*0~SE*8*2878~'
# Parse the message
r = parser.parse('997', m997)
+r.show
# Access components of the message as desired
# Whole ST segment: -> ST*997*2878~
puts r.ST