Class: Appsignal::Utils::NDJSON Private
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .generate(body) ⇒ Object private
Class Method Details
.generate(body) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 10 11 |
# File 'lib/appsignal/utils/ndjson.rb', line 7 def generate(body) body.map do |element| Appsignal::Utils::JSON.generate(element) end.join("\n") end |