Class: LogStruct::Log::Shrine::Exist
- Inherits:
-
T::Struct
- Object
- T::Struct
- LogStruct::Log::Shrine::Exist
- Extended by:
- T::Sig
- Defined in:
- lib/log_struct/log/shrine/exist.rb
Instance Attribute Summary collapse
-
#event ⇒ Event
readonly
Returns the value of prop
event. -
#exist ⇒ Boolean?
readonly
Returns the value of prop
exist. -
#level ⇒ Level
readonly
Returns the value of prop
level. -
#location ⇒ String
readonly
Returns the value of prop
location. -
#source ⇒ Source::Shrine
readonly
Shared/common fields.
-
#storage ⇒ Symbol
readonly
Event-specific fields.
-
#timestamp ⇒ Time
readonly
Returns the value of prop
timestamp.
Instance Method Summary collapse
- #initialize(source: Source::Shrine, event: Event::Exist, timestamp:, level: Level::Info, storage:, location:, exist: nil) ⇒ void constructor
- #to_h ⇒ Hash{LogStruct::LogField => T.untyped}
Methods included from LogStruct::Log::Shared::SerializeCommon
#as_json, #serialize, #serialize_common
Methods included from Interfaces::CommonFields
Constructor Details
#initialize(source: Source::Shrine, event: Event::Exist, timestamp:, level: Level::Info, storage:, location:, exist: nil) ⇒ void
|
|
# File '' const :source, Source::Shrine, default: Source::Shrine const :event, Event, default: Event::Exist const :timestamp, Time, factory: -> { Time.now } const :level, Level, default: Level::Info const :storage, Symbol const :location, String const :exist, T.nilable(T::Boolean), default: nil |
Instance Attribute Details
#event ⇒ Event (readonly)
Returns the value of prop event.
|
|
# File '' const :event, Event, default: Event::Exist |
#exist ⇒ Boolean? (readonly)
Returns the value of prop exist.
|
|
# File '' const :exist, T.nilable(T::Boolean), default: nil |
#level ⇒ Level (readonly)
Returns the value of prop level.
|
|
# File '' const :level, Level, default: Level::Info |
#location ⇒ String (readonly)
Returns the value of prop location.
|
|
# File '' const :location, String |
#source ⇒ Source::Shrine (readonly)
Shared/common fields
|
|
# File '' const :source, Source::Shrine, default: Source::Shrine |
#storage ⇒ Symbol (readonly)
Event-specific fields
|
|
# File '' const :storage, Symbol |
#timestamp ⇒ Time (readonly)
Returns the value of prop timestamp.
|
|
# File '' const :timestamp, Time, factory: -> { Time.now } |