Module: Avromatic::Model::NestedModels::ClassMethods

Defined in:
lib/avromatic/model/nested_models.rb

Instance Method Summary collapse

Instance Method Details

#register!Object

Register this model if it can be used as a nested model.



14
15
16
17
18
# File 'lib/avromatic/model/nested_models.rb', line 14

def register!
  if key_avro_schema.nil? && value_avro_schema.type_sym == :record
    nested_models.register(self)
  end
end