Method: ElasticAPM::Fields::InstanceMethods#empty?

Defined in:
lib/elastic_apm/fields.rb

#empty?Boolean

Returns:

  • (Boolean)


58
59
60
61
62
63
64
65
# File 'lib/elastic_apm/fields.rb', line 58

def empty?
  self.class.schema.each do |key, field|
    next if send(key).nil?
    return false
  end

  true
end