Class: Cadenya::Types::MemoryEntryCreateSpec_Content
- Inherits:
-
Object
- Object
- Cadenya::Types::MemoryEntryCreateSpec_Content
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, content: nil, key: nil, description: nil) ⇒ MemoryEntryCreateSpec_Content
constructor
A new instance of MemoryEntryCreateSpec_Content.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, content: nil, key: nil, description: nil) ⇒ MemoryEntryCreateSpec_Content
Returns a new instance of MemoryEntryCreateSpec_Content.
9033 9034 9035 9036 9037 9038 |
# File 'lib/cadenya/types.rb', line 9033 def initialize(type: nil, content: nil, key: nil, description: nil) @type = type @content = content @key = key @description = description end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
9031 9032 9033 |
# File 'lib/cadenya/types.rb', line 9031 def content @content end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
9031 9032 9033 |
# File 'lib/cadenya/types.rb', line 9031 def description @description end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
9031 9032 9033 |
# File 'lib/cadenya/types.rb', line 9031 def key @key end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9031 9032 9033 |
# File 'lib/cadenya/types.rb', line 9031 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
9040 9041 9042 9043 9044 9045 9046 9047 |
# File 'lib/cadenya/types.rb', line 9040 def self.from_json(data) new( type: data["type"], content: data["content"], key: data["key"], description: data["description"], ) end |