Class: LogStruct::Log::CarrierWave::Delete
- Inherits:
-
T::Struct
- Object
- T::Struct
- LogStruct::Log::CarrierWave::Delete
- Extended by:
- T::Sig
- Includes:
- Interfaces::CommonFields, Shared::SerializeCommon
- Defined in:
- lib/log_struct/log/carrierwave/delete.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
46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/log_struct/log/carrierwave/delete.rb', line 46 def to_h h = T.let({}, T::Hash[LogStruct::LogField, T.untyped]) h[LogField::Storage] = storage h[LogField::FileId] = file_id h[LogField::Uploader] = uploader unless uploader.nil? h[LogField::Model] = model unless model.nil? h[LogField::MountPoint] = mount_point unless mount_point.nil? h[LogField::Version] = version unless version.nil? h[LogField::StorePath] = store_path unless store_path.nil? h[LogField::Extension] = extension unless extension.nil? h end |