Method: Avro::Schema::EnumSchema#to_avro

Defined in:
lib/avro/schema.rb

#to_avro(_names = Set.new) ⇒ Object



453
454
455
456
457
458
459
460
# File 'lib/avro/schema.rb', line 453

def to_avro(_names=Set.new)
  avro = super
  if avro.is_a?(Hash)
    avro['symbols'] = symbols
    avro['default'] = default if default
  end
  avro
end