Class: LogStruct::Log::ActiveStorage::Exist
- Inherits:
-
T::Struct
- Object
- T::Struct
- LogStruct::Log::ActiveStorage::Exist
- Extended by:
- T::Sig
- Includes:
- Interfaces::CommonFields, Shared::SerializeCommon
- Defined in:
- lib/log_struct/log/active_storage/exist.rb
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
Instance Method Details
#to_h ⇒ Object
43 44 45 46 47 48 49 |
# File 'lib/log_struct/log/active_storage/exist.rb', line 43 def to_h h = T.let({}, T::Hash[LogStruct::LogField, T.untyped]) h[LogField::Storage] = storage h[LogField::FileId] = file_id h[LogField::Exist] = exist unless exist.nil? h end |