Class: SchemaTest::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/schema_test/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_pathsObject

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

#domainObject

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