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.



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

def initialize
  @processed_names = []
end

Class Method Details

.to_parsing_form(schema) ⇒ Object



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

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

Instance Method Details

#to_parsing_form(schema) ⇒ Object



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

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