Method: Cts::Mpx::Fields#to_h

Defined in:
lib/cts/mpx/fields.rb

#to_hHash

return the fields as a hash

Returns:

  • (Hash)

    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