Class: Avro::SchemaNormalization
- Inherits:
-
Object
- Object
- Avro::SchemaNormalization
- Defined in:
- lib/avro/schema_normalization.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ SchemaNormalization
constructor
A new instance of SchemaNormalization.
- #to_parsing_form(schema) ⇒ Object
Constructor Details
#initialize ⇒ SchemaNormalization
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 |