Method: MoneyKit::ValidationError#hash

Defined in:
lib/moneykit/models/validation_error.rb

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



137
138
139
# File 'lib/moneykit/models/validation_error.rb', line 137

def hash
  [location, message, type].hash
end