Class: Cadenya::Types::MemoryEntryUpdateSpec
- Inherits:
-
Object
- Object
- Cadenya::Types::MemoryEntryUpdateSpec
- 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.
-
#upload_id ⇒ Object
readonly
Returns the value of attribute upload_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key: nil, description: nil, content: nil, upload_id: nil) ⇒ MemoryEntryUpdateSpec
constructor
A new instance of MemoryEntryUpdateSpec.
- #to_h ⇒ Object
Constructor Details
#initialize(key: nil, description: nil, content: nil, upload_id: nil) ⇒ MemoryEntryUpdateSpec
Returns a new instance of MemoryEntryUpdateSpec.
3167 3168 3169 3170 3171 3172 |
# File 'lib/cadenya/types.rb', line 3167 def initialize(key: nil, description: nil, content: nil, upload_id: nil) @key = key @description = description @content = content @upload_id = upload_id end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
3165 3166 3167 |
# File 'lib/cadenya/types.rb', line 3165 def content @content end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
3165 3166 3167 |
# File 'lib/cadenya/types.rb', line 3165 def description @description end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
3165 3166 3167 |
# File 'lib/cadenya/types.rb', line 3165 def key @key end |
#upload_id ⇒ Object (readonly)
Returns the value of attribute upload_id.
3165 3166 3167 |
# File 'lib/cadenya/types.rb', line 3165 def upload_id @upload_id end |
Class Method Details
.from_json(data) ⇒ Object
3174 3175 3176 3177 3178 3179 3180 3181 |
# File 'lib/cadenya/types.rb', line 3174 def self.from_json(data) new( key: data["key"], description: data["description"], content: data["content"], upload_id: data["uploadId"], ) end |