return the fields as a hash
Returns:
key is name, value is value
107 108 109 110 111
# File 'lib/cts/mpx/fields.rb', line 107 def to_h h = {} each { |f| h.store f.name, f.value } h end