Class: Avro::Schema
- Inherits:
-
Object
- Object
- Avro::Schema
- Defined in:
- lib/avro/resolution_fingerprint.rb
Instance Method Summary collapse
-
#sha256_resolution_fingerprint ⇒ Object
Returns the SHA-256 fingerprint of the Resolution Canonical Form for the schema as an Integer.
Instance Method Details
#sha256_resolution_fingerprint ⇒ Object
Returns the SHA-256 fingerprint of the Resolution Canonical Form for the schema as an Integer
7 8 9 10 |
# File 'lib/avro/resolution_fingerprint.rb', line 7 def sha256_resolution_fingerprint resolution_form = ResolutionCanonicalForm.to_resolution_form(self) Digest::SHA256.hexdigest(resolution_form).to_i(16) end |