Class EDI::E::UNA
In: lib/edi4r/edifact.rb
Parent: EDI::Object

Class UNA is a model of UN/EDIFACT’s UNA pseudo-segment. It provides getters and setters that let you manipulate the six special characters of UN/EDIFACT. Note that the chars are passed as integers, i.e. ASCII codes.

Methods

ce_sep=   de_sep=   decimal_sign=   esc_char=   new   rep_sep=   seg_term=   to_s  

Attributes

ce_sep  [R] 
de_sep  [R] 
decimal_sign  [R] 
esc_char  [R] 
rep_sep  [R] 
seg_term  [R] 

Public Class methods

Generates the UNA object

  • Requires that "version" and "charset" of parent/root (Interchange) be already defined.
  • Sets the UN/EDIFACT defaults if source string ‘UNA.…..’ not given

Public Instance methods

Sets the composite data element separator. Default is ?:

Sets the data element separator. Default is ?+

Sets the decimal sign. UN/EDIFACT allows only ?, and ?.

Sets the escape character. Default is ??

Sets the repetition separator. Default is ?* . Only applicable to Syntax Version 4 !

Sets the segment terminator. Default is ?’

[Validate]