class OpenStruct

def hash

See also Object#hash.

(and will compare using #eql?).
Two OpenStruct objects with the same content will have the same hash code
Computes a hash code for this OpenStruct.
def hash
  @table.hash
end