Class: Cadenya::Types::MemoryRead
- Inherits:
-
Object
- Object
- Cadenya::Types::MemoryRead
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#memory_entry_id ⇒ Object
readonly
Returns the value of attribute memory_entry_id.
-
#memory_layer_id ⇒ Object
readonly
Returns the value of attribute memory_layer_id.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(message: nil, memory_layer_id: nil, memory_entry_id: nil) ⇒ MemoryRead
constructor
A new instance of MemoryRead.
- #to_h ⇒ Object
Constructor Details
#initialize(message: nil, memory_layer_id: nil, memory_entry_id: nil) ⇒ MemoryRead
Returns a new instance of MemoryRead.
3288 3289 3290 3291 3292 |
# File 'lib/cadenya/types.rb', line 3288 def initialize(message: nil, memory_layer_id: nil, memory_entry_id: nil) @message = @memory_layer_id = memory_layer_id @memory_entry_id = memory_entry_id end |
Instance Attribute Details
#memory_entry_id ⇒ Object (readonly)
Returns the value of attribute memory_entry_id.
3286 3287 3288 |
# File 'lib/cadenya/types.rb', line 3286 def memory_entry_id @memory_entry_id end |
#memory_layer_id ⇒ Object (readonly)
Returns the value of attribute memory_layer_id.
3286 3287 3288 |
# File 'lib/cadenya/types.rb', line 3286 def memory_layer_id @memory_layer_id end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3286 3287 3288 |
# File 'lib/cadenya/types.rb', line 3286 def @message end |
Class Method Details
.from_json(data) ⇒ Object
3294 3295 3296 3297 3298 3299 3300 |
# File 'lib/cadenya/types.rb', line 3294 def self.from_json(data) new( message: data["message"], memory_layer_id: data["memoryLayerId"], memory_entry_id: data["memoryEntryId"], ) end |