Method: ElasticAPM::Fields::InstanceMethods#initialize
- Defined in:
- lib/elastic_apm/fields.rb
#initialize(**attrs) ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/elastic_apm/fields.rb', line 46 def initialize(**attrs) schema.each do |key, field| send(:"#{key}=", field.default) end attrs.each do |key, value| send(:"#{key}=", value) end super() end |