Module: MyData::Xsd::ResourceGenerator
- Extended by:
- ResourceGenerator
- Included in:
- ResourceGenerator
- Defined in:
- lib/my_data/xsd/resource_generator.rb
Overview
This class is for development reason only, to generate resources
Instance Method Summary collapse
Instance Method Details
#generate_docs ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/my_data/xsd/resource_generator.rb', line 9 def generate_docs MyData::Xsd::Structure.docs.each do |name, doc| generate_file(name: name, namespace: doc.target_namespace, xsd_mode: "xsd_doc") end "done" end |
#generate_types ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/my_data/xsd/resource_generator.rb', line 17 def generate_types MyData::Xsd::Structure.complex_types.each_value do |type| generate_file(name: type.name, namespace: type.namespace, xsd_mode: "xsd_complex_type") end "done" end |