Module: AvroPatches::SchemaCompatibility::FieldPatch
- Defined in:
- lib/avro-patches/schema_compatibility/schema.rb
Instance Method Summary collapse
Instance Method Details
#default? ⇒ Boolean
56 57 58 |
# File 'lib/avro-patches/schema_compatibility/schema.rb', line 56 def default? @default != :no_default end |
#to_avro(names = Set.new) ⇒ Object
60 61 62 63 64 |
# File 'lib/avro-patches/schema_compatibility/schema.rb', line 60 def to_avro(names = Set.new) super.tap do |avro| avro['default'] = default if default? end end |