Class: Avro::SchemaNormalization

Inherits:
Object
  • Object
show all
Defined in:
lib/avro/schema_normalization.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSchemaNormalization

Returns a new instance of SchemaNormalization.



24
25
26
# File 'lib/avro/schema_normalization.rb', line 24

def initialize
  @processed_names = []
end

Class Method Details

.to_parsing_form(schema) ⇒ Object



20
21
22
# File 'lib/avro/schema_normalization.rb', line 20

def self.to_parsing_form(schema)
  new.to_parsing_form(schema)
end

Instance Method Details

#to_parsing_form(schema) ⇒ Object



28
29
30
# File 'lib/avro/schema_normalization.rb', line 28

def to_parsing_form(schema)
  MultiJson.dump(normalize_schema(schema))
end