Method: CRDT::VectorClock#to_h

Defined in:
lib/crdt/vector_clock.rb

#to_hObject

Get a hash representation of this vector clock, suitable for serialization to JSON



54
55
56
57
58
# File 'lib/crdt/vector_clock.rb', line 54

def to_h
  return {
    clocks: @clocks,
  }
end