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) } end
Instance Attribute Summary collapse
-
#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. -
#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) ⇒ void constructor
- #to_kwargs ⇒ Kwargs
Constructor Details
#initialize(storage:, file_id:, uploader: nil, model: nil, mount_point: nil, version: 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 |
Instance Attribute Details
#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 |
#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
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/log_struct/log/carrierwave.rb', line 38 def to_kwargs { storage: storage, file_id: file_id, uploader: uploader, model: model, mount_point: mount_point, version: version } end |