Class: LogStruct::Log::ActiveStorage::BaseFields
- Inherits:
-
T::Struct
- Object
- T::Struct
- LogStruct::Log::ActiveStorage::BaseFields
- Extended by:
- T::Sig
- Defined in:
- lib/log_struct/log/active_storage.rb
Constant Summary collapse
- Kwargs =
T.type_alias do { storage: Symbol, file_id: String } end
Instance Attribute Summary collapse
-
#file_id ⇒ String
readonly
Returns the value of prop
file_id. -
#storage ⇒ Symbol
readonly
Returns the value of prop
storage.
Instance Method Summary collapse
Constructor Details
#initialize(storage:, file_id:) ⇒ void
|
|
# File '' const :storage, Symbol const :file_id, String |
Instance Attribute Details
#file_id ⇒ String (readonly)
Returns the value of prop file_id.
|
|
# File '' const :file_id, String |
#storage ⇒ Symbol (readonly)
Returns the value of prop storage.
|
|
# File '' const :storage, Symbol |
Instance Method Details
#to_kwargs ⇒ Kwargs
33 34 35 36 37 38 |
# File 'lib/log_struct/log/active_storage.rb', line 33 def to_kwargs { storage: storage, file_id: file_id } end |