Class: Codec::String

Inherits:
Base
  • Object
show all
Defined in:
lib/codec/fix.rb

Instance Attribute Summary

Attributes inherited from Base

#id

Instance Method Summary collapse

Methods inherited from Base

#add_subparser, #decode, #decode_with_length, #get_sub_parsers, #init_data, #initialize

Constructor Details

This class inherits a constructor from Codec::Base

Instance Method Details

#build_fieldObject



31
32
33
34
35
36
37
38
# File 'lib/codec/fix.rb', line 31

def build_field
  f = Field.new(@id)
    if IsEbcdic(@data)
 @data = Ebcdic2Ascii(@data)
    end
  f.set_value(@data)
  return f
end