Method: Logtail::Contexts::System#to_hash
- Defined in:
- lib/logtail/contexts/system.rb
#to_hash ⇒ Object
Builds a hash representation containing simple objects, suitable for serialization (JSON).
19 20 21 22 23 24 25 26 |
# File 'lib/logtail/contexts/system.rb', line 19 def to_hash @to_hash ||= { system: Util::NonNilHashBuilder.build do |h| h.add(:hostname, hostname) h.add(:pid, pid) end } end |