Class: JsonSchema::Faker
- Inherits:
-
Object
- Object
- JsonSchema::Faker
- Defined in:
- lib/json_schema/faker.rb
Defined Under Namespace
Modules: Configuration
Instance Method Summary collapse
- #generate(hint: nil) ⇒ Object
-
#initialize(schema, options = {}) ⇒ Faker
constructor
TODO: strategy to use for faker.
Constructor Details
#initialize(schema, options = {}) ⇒ Faker
TODO: strategy to use for faker
15 16 17 18 19 |
# File 'lib/json_schema/faker.rb', line 15 def initialize(schema, = {}) @schema = schema @options = end |
Instance Method Details
#generate(hint: nil) ⇒ Object
21 22 23 24 25 26 27 28 |
# File 'lib/json_schema/faker.rb', line 21 def generate(hint: nil) generated = _generate(@schema, hint: nil, position: "") Configuration.logger.debug "to generate against #{@schema.inspect_schema}" if Configuration.logger Configuration.logger.debug "generated: #{generated.inspect}" if Configuration.logger generated end |