Class: JSON::Schema::Object
Overview
The JSON::Schema::Object class represents an object value in a JSON schema. It is a subclass of JSON::Schema::Leaf and provides methods that can act as constraints.
Instance Method Summary collapse
-
#initialize(properties) ⇒ Object
constructor
A new instance of Object.
-
#to_h ⇒ Object
-
#to_json(options = {}) ⇒ Object
Methods inherited from Leaf
#const, #default, #description, #enum, #required?
Constructor Details
#initialize(properties) ⇒ Object
Returns a new instance of Object.
10 11 12 |
# File 'lib/json/schema/object.rb', line 10 def initialize(properties) @properties = properties end |