Class: Suma::SchemaExporter
- Inherits:
-
Object
- Object
- Suma::SchemaExporter
- Defined in:
- lib/suma/schema_exporter.rb
Overview
SchemaExporter exports EXPRESS schemas from a manifest with configurable options for annotations and ZIP packaging
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#output_path ⇒ Object
readonly
Returns the value of attribute output_path.
-
#schemas ⇒ Object
readonly
Returns the value of attribute schemas.
Instance Method Summary collapse
- #export ⇒ Object
-
#initialize(schemas:, output_path:, options: {}) ⇒ SchemaExporter
constructor
A new instance of SchemaExporter.
Constructor Details
#initialize(schemas:, output_path:, options: {}) ⇒ SchemaExporter
Returns a new instance of SchemaExporter.
14 15 16 17 18 |
# File 'lib/suma/schema_exporter.rb', line 14 def initialize(schemas:, output_path:, options: {}) @schemas = schemas @output_path = Pathname.new(output_path). @options = .merge() end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
12 13 14 |
# File 'lib/suma/schema_exporter.rb', line 12 def @options end |
#output_path ⇒ Object (readonly)
Returns the value of attribute output_path.
12 13 14 |
# File 'lib/suma/schema_exporter.rb', line 12 def output_path @output_path end |
#schemas ⇒ Object (readonly)
Returns the value of attribute schemas.
12 13 14 |
# File 'lib/suma/schema_exporter.rb', line 12 def schemas @schemas end |