Class: LogStruct::Log::ActiveStorage::BaseFields

Inherits:
T::Struct
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(storage:, file_id:) ⇒ void

Parameters:

  • storage (Symbol)
  • file_id (String)


# File ''

const :storage, Symbol
const :file_id, String

Instance Attribute Details

#file_idString (readonly)

Returns the value of prop file_id.

Returns:

  • (String)


# File ''

const :file_id, String

#storageSymbol (readonly)

Returns the value of prop storage.

Returns:

  • (Symbol)


# File ''

const :storage, Symbol

Instance Method Details

#to_kwargsKwargs

Returns:



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