Method: AvroTurf::AvroGemPatch::Field#to_avro
- Defined in:
- lib/avro_turf/schema_to_avro_patch.rb
#to_avro(names = Set.new) ⇒ Object
30 31 32 33 34 35 |
# File 'lib/avro_turf/schema_to_avro_patch.rb', line 30 def to_avro(names=Set.new) {'name' => name, 'type' => type.to_avro(names)}.tap do |avro| avro['default'] = default unless default == :no_default avro['order'] = order if order end end |