Class: Spinoza::ReadResult

Inherits:
Object
  • Object
show all
Defined in:
lib/spinoza/system/operation.rb

Overview

Result of executing a read operation on a particular node at a particular time.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(op: nil, val: nil) ⇒ ReadResult

Returns a new instance of ReadResult.



100
101
102
# File 'lib/spinoza/system/operation.rb', line 100

def initialize op: nil, val: nil
  @op, @val = op, val
end

Instance Attribute Details

#opObject (readonly)

Returns the value of attribute op.



99
100
101
# File 'lib/spinoza/system/operation.rb', line 99

def op
  @op
end

#valObject (readonly)

Returns the value of attribute val.



99
100
101
# File 'lib/spinoza/system/operation.rb', line 99

def val
  @val
end