Class: LogStruct::Log::Puma::Start
- Inherits:
-
T::Struct
- Object
- T::Struct
- LogStruct::Log::Puma::Start
- Extended by:
- T::Sig
- Includes:
- Interfaces::AdditionalDataField, Interfaces::CommonFields, Shared::MergeAdditionalDataFields, Shared::SerializeCommon
- Defined in:
- lib/log_struct/log/puma/start.rb
Constant Summary
Constants included from Shared::MergeAdditionalDataFields
Shared::MergeAdditionalDataFields::RESERVED_KEYS
Instance Method Summary collapse
Methods included from Shared::SerializeCommon
#as_json, #serialize, #serialize_common
Methods included from Interfaces::CommonFields
Methods included from Interfaces::CommonFieldBase
#level, #serialize, #timestamp
Methods included from Shared::MergeAdditionalDataFields
Methods included from Interfaces::AdditionalDataField
Instance Method Details
#to_h ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/log_struct/log/puma/start.rb', line 53 def to_h h = T.let({}, T::Hash[LogStruct::LogField, T.untyped]) h[LogField::Mode] = mode unless mode.nil? h[LogField::PumaVersion] = puma_version unless puma_version.nil? h[LogField::PumaCodename] = puma_codename unless puma_codename.nil? h[LogField::RubyVersion] = ruby_version unless ruby_version.nil? h[LogField::MinThreads] = min_threads unless min_threads.nil? h[LogField::MaxThreads] = max_threads unless max_threads.nil? h[LogField::Environment] = environment unless environment.nil? h[LogField::ProcessId] = process_id unless process_id.nil? h[LogField::ListeningAddresses] = listening_addresses unless listening_addresses.nil? h end |