Class: Cadenya::Types::MemoryReference
- Inherits:
-
Object
- Object
- Cadenya::Types::MemoryReference
- 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.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(memory_layer_id: nil, memory_entry_id: nil) ⇒ MemoryReference
constructor
A new instance of MemoryReference.
- #to_h ⇒ Object
Constructor Details
#initialize(memory_layer_id: nil, memory_entry_id: nil) ⇒ MemoryReference
Returns a new instance of MemoryReference.
3314 3315 3316 3317 |
# File 'lib/cadenya/types.rb', line 3314 def initialize(memory_layer_id: nil, memory_entry_id: nil) @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.
3312 3313 3314 |
# File 'lib/cadenya/types.rb', line 3312 def memory_entry_id @memory_entry_id end |
#memory_layer_id ⇒ Object (readonly)
Returns the value of attribute memory_layer_id.
3312 3313 3314 |
# File 'lib/cadenya/types.rb', line 3312 def memory_layer_id @memory_layer_id end |
Class Method Details
.from_json(data) ⇒ Object
3319 3320 3321 3322 3323 3324 |
# File 'lib/cadenya/types.rb', line 3319 def self.from_json(data) new( memory_layer_id: data["memoryLayerId"], memory_entry_id: data["memoryEntryId"], ) end |