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.
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 |