Method: ElasticAPM::Fields::InstanceMethods#to_h

Defined in:
lib/elastic_apm/fields.rb

#to_hObject



67
68
69
70
71
# File 'lib/elastic_apm/fields.rb', line 67

def to_h
  schema.each_with_object({}) do |(key, field), hsh|
    hsh[key] = send(key)
  end
end