Class: SchemaTest::Configuration
- Inherits:
-
Object
- Object
- SchemaTest::Configuration
- Defined in:
- lib/schema_test/configuration.rb
Instance Attribute Summary collapse
-
#definition_paths ⇒ Object
This should be an array or one or more paths.
-
#domain ⇒ Object
The domain is used to contstruct the ‘$id` part of the generated JSON-Schema definitions.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 |
# File 'lib/schema_test/configuration.rb', line 12 def initialize @domain = 'example.com' @definition_paths = [] end |
Instance Attribute Details
#definition_paths ⇒ Object
This should be an array or one or more paths. All ruby files under these paths will all be loaded when ‘SchemaTest.setup!` is called. You can nest files in as many subdirectories are you like.
10 11 12 |
# File 'lib/schema_test/configuration.rb', line 10 def definition_paths @definition_paths end |
#domain ⇒ Object
The domain is used to contstruct the ‘$id` part of the generated JSON-Schema definitions. This can be set to anything you like really.
5 6 7 |
# File 'lib/schema_test/configuration.rb', line 5 def domain @domain end |