Class: DDSL::Schema

Inherits:
Object
  • Object
show all
Defined in:
lib/ddsl/schema.rb

Direct Known Subclasses

SchemaBuild, SchemaDDSL, SchemaRun

Constant Summary collapse

VERSION =
:draft4

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Schema

Returns a new instance of Schema.



9
10
11
# File 'lib/ddsl/schema.rb', line 9

def initialize(data)
  @data = data
end

Instance Method Details

#validateObject



13
14
15
# File 'lib/ddsl/schema.rb', line 13

def validate
  schemer_validator.validate(@data).to_a
end