Method: Avromatic::Model::RawSerialization::Encode#avro_raw_key
- Defined in:
- lib/avromatic/model/raw_serialization.rb
#avro_raw_key(validate: UNSPECIFIED) ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/avromatic/model/raw_serialization.rb', line 33 def avro_raw_key(validate: UNSPECIFIED) unless validate == UNSPECIFIED ActiveSupport::Deprecation.warn("The 'validate' argument to #{__method__} is deprecated.") end raise 'Model has no key schema' unless key_avro_schema avro_raw_encode(key_attributes_for_avro, :key) end |