Class: LogStruct::Log::Dotenv::Update

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Includes:
Interfaces::CommonFields, Shared::SerializeCommon
Defined in:
lib/log_struct/log/dotenv/update.rb

Instance Method Summary collapse

Methods included from Shared::SerializeCommon

#as_json, #serialize, #serialize_common

Methods included from Interfaces::CommonFields

#event, #level, #serialize, #source, #timestamp

Instance Method Details

#to_hObject



40
41
42
43
44
# File 'lib/log_struct/log/dotenv/update.rb', line 40

def to_h
  h = T.let({}, T::Hash[LogStruct::LogField, T.untyped])
  h[LogField::Vars] = vars
  h
end