Class: DDSL::Schema
- Inherits:
-
Object
- Object
- DDSL::Schema
- Defined in:
- lib/ddsl/schema.rb
Direct Known Subclasses
Constant Summary collapse
- VERSION =
:draft4
Instance Method Summary collapse
-
#initialize(data) ⇒ Schema
constructor
A new instance of Schema.
- #validate ⇒ Object
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
#validate ⇒ Object
13 14 15 |
# File 'lib/ddsl/schema.rb', line 13 def validate schemer_validator.validate(@data).to_a end |