Class: Cadenya::Types::MemoryEntrySpec
- Inherits:
-
Object
- Object
- Cadenya::Types::MemoryEntrySpec
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key: nil, description: nil) ⇒ MemoryEntrySpec
constructor
A new instance of MemoryEntrySpec.
- #to_h ⇒ Object
Constructor Details
#initialize(key: nil, description: nil) ⇒ MemoryEntrySpec
Returns a new instance of MemoryEntrySpec.
3144 3145 3146 3147 |
# File 'lib/cadenya/types.rb', line 3144 def initialize(key: nil, description: nil) @key = key @description = description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
3142 3143 3144 |
# File 'lib/cadenya/types.rb', line 3142 def description @description end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
3142 3143 3144 |
# File 'lib/cadenya/types.rb', line 3142 def key @key end |
Class Method Details
.from_json(data) ⇒ Object
3149 3150 3151 3152 3153 3154 |
# File 'lib/cadenya/types.rb', line 3149 def self.from_json(data) new( key: data["key"], description: data["description"], ) end |