Class: Cadenya::Models::MemoryLayers::MemoryEntryCreateSpecContent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Cadenya::Models::MemoryLayers::MemoryEntryCreateSpecContent
- Defined in:
- lib/cadenya/models/memory_layers/memory_entry_create_spec_content.rb,
sig/cadenya/models/memory_layers/memory_entry_create_spec_content.rbs
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#content ⇒ String
Inline content, written directly into the entry.
- #description ⇒ String?
-
#key ⇒ String?
See MemoryEntrySpec.key for the full rule set.
- #type ⇒ Symbol, Cadenya::Models::MemoryLayers::MemoryEntryCreateSpecContent::Type
Instance Method Summary collapse
-
#initialize(content:, type:, description: nil, key: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see MemoryEntryCreateSpecContent for more details.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(content:, type:, description: nil, key: nil) ⇒ Object
Some parameter documentations has been truncated, see Cadenya::Models::MemoryLayers::MemoryEntryCreateSpecContent for more details.
|
|
# File 'lib/cadenya/models/memory_layers/memory_entry_create_spec_content.rb', line 29
|
Instance Attribute Details
#content ⇒ String
Inline content, written directly into the entry.
11 |
# File 'lib/cadenya/models/memory_layers/memory_entry_create_spec_content.rb', line 11 required :content, String |
#description ⇒ String?
21 |
# File 'lib/cadenya/models/memory_layers/memory_entry_create_spec_content.rb', line 21 optional :description, String |
#key ⇒ String?
See MemoryEntrySpec.key for the full rule set. Same constraints apply here.
27 |
# File 'lib/cadenya/models/memory_layers/memory_entry_create_spec_content.rb', line 27 optional :key, String |
#type ⇒ Symbol, Cadenya::Models::MemoryLayers::MemoryEntryCreateSpecContent::Type
16 |
# File 'lib/cadenya/models/memory_layers/memory_entry_create_spec_content.rb', line 16 required :type, enum: -> { Cadenya::MemoryLayers::MemoryEntryCreateSpecContent::Type } |
Instance Method Details
#to_hash ⇒ {
32 |
# File 'sig/cadenya/models/memory_layers/memory_entry_create_spec_content.rbs', line 32
def to_hash: -> {
|