Skip to content

Commit 2bbecc4

Browse files
committed
create a factory
1 parent 5fe2d1a commit 2bbecc4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Factory.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'use strict'
2+
3+
const Convertor = require('./Convertor')
4+
5+
class SchemaFactory {
6+
constructor() {}
7+
8+
static convert(schema) {
9+
const convertedSchema = new Convertor(schema)
10+
return convertedSchema.convert()
11+
}
12+
}
13+
14+
module.exports = SchemaFactory

0 commit comments

Comments
 (0)