lib/fix/protocol/field.rb
#
# Performs the actual mapping or type casting by converting an object to a string
# or a symbol to a mapped string
#
# @param obj [Object] The mapping key or object to convert
# @return [String] The FIX field value
#
Performs the actual mapping or type casting by converting an object to a string
or a symbol to a mapped string
Performs the actual mapping or type casting by converting an object to a string or a symbol to a mapped string
def from_type(obj)
        if !obj.nil? && type && !mapping
          send("dump_#{type}", obj)
        elsif !obj.nil? && mapping && mapping.has_key?(obj)
          mapping[obj]
        else
          obj
        end
      end
def from_type ( obj ) if ! obj . nil? && type && ! mapping send ( "dump_#{type}" , obj ) elsif ! obj . nil? && mapping && mapping . has_key? ( obj ) mapping [ obj ] else obj end end
Performs the actual mapping or type casting by converting an object to a string
or a symbol to a mapped string
Performs the actual mapping or type casting by converting an object to a string or a symbol to a mapped string
The FIX field value
The FIX field value
String
obj
The mapping key or object to convert
The mapping key or object to convert