Class: LogStruct::Log::CarrierWave::BaseFields
- Inherits:
-
T::Struct
- Object
- T::Struct
- LogStruct::Log::CarrierWave::BaseFields
- Extended by:
- T::Sig
- Defined in:
- lib/log_struct/log/carrierwave.rb
Constant Summary collapse
- Kwargs =
T.type_alias do { storage: Symbol, file_id: String, uploader: T.nilable(String), model: T.nilable(String), mount_point: T.nilable(String), version: T.nilable(String), store_path: T.nilable(String), extension: T.nilable(String) } end
Instance Attribute Summary collapse
-
#extension ⇒ String?
readonly
Returns the value of prop
extension. -
#file_id ⇒ String
readonly
Returns the value of prop
file_id. -
#model ⇒ String?
readonly
Returns the value of prop
model. -
#mount_point ⇒ String?
readonly
Returns the value of prop
mount_point. -
#storage ⇒ Symbol
readonly
Returns the value of prop
storage. -
#store_path ⇒ String?
readonly
Returns the value of prop
store_path. -
#uploader ⇒ String?
readonly
Returns the value of prop
uploader. -
#version ⇒ String?
readonly
Returns the value of prop
version.
Instance Method Summary collapse
- #initialize(storage:, file_id:, uploader: nil, model: nil, mount_point: nil, version: nil, store_path: nil, extension: nil) ⇒ void constructor
- #to_kwargs ⇒ Kwargs
Constructor Details
#initialize(storage:, file_id:, uploader: nil, model: nil, mount_point: nil, version: nil, store_path: nil, extension: nil) ⇒ void
|
|
# File '' const :storage, Symbol const :file_id, String const :uploader, T.nilable(String), default: nil const :model, T.nilable(String), default: nil const :mount_point, T.nilable(String), default: nil const :version, T.nilable(String), default: nil const :store_path, T.nilable(String), default: nil const :extension, T.nilable(String), default: nil |
Instance Attribute Details
#extension ⇒ String? (readonly)
Returns the value of prop extension.
|
|
# File '' const :extension, T.nilable(String), default: nil |
#file_id ⇒ String (readonly)
Returns the value of prop file_id.
|
|
# File '' const :file_id, String |
#model ⇒ String? (readonly)
Returns the value of prop model.
|
|
# File '' const :model, T.nilable(String), default: nil |
#mount_point ⇒ String? (readonly)
Returns the value of prop mount_point.
|
|
# File '' const :mount_point, T.nilable(String), default: nil |
#storage ⇒ Symbol (readonly)
Returns the value of prop storage.
|
|
# File '' const :storage, Symbol |
#store_path ⇒ String? (readonly)
Returns the value of prop store_path.
|
|
# File '' const :store_path, T.nilable(String), default: nil |
#uploader ⇒ String? (readonly)
Returns the value of prop uploader.
|
|
# File '' const :uploader, T.nilable(String), default: nil |
#version ⇒ String? (readonly)
Returns the value of prop version.
|
|
# File '' const :version, T.nilable(String), default: nil |
Instance Method Details
#to_kwargs ⇒ Kwargs
41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/log_struct/log/carrierwave.rb', line 41 def to_kwargs { storage: storage, file_id: file_id, uploader: uploader, model: model, mount_point: mount_point, version: version, store_path: store_path, extension: extension } end |