Class: LogStruct::Log::Shrine::Download
- Inherits:
-
T::Struct
- Object
- T::Struct
- LogStruct::Log::Shrine::Download
- Extended by:
- T::Sig
- Defined in:
- lib/log_struct/log/shrine/download.rb
Instance Method Summary collapse
Methods included from LogStruct::Log::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
42 43 44 45 46 47 48 |
# File 'lib/log_struct/log/shrine/download.rb', line 42 def to_h h = T.let({}, T::Hash[LogStruct::LogField, T.untyped]) h[LogField::Storage] = storage h[LogField::Location] = location h[LogField::DownloadOptions] = unless .nil? h end |