Class: JSON::Schema::Booelean

Inherits:
Leaf
  • Object
show all
Defined in:
lib/json/schema/boolean.rb

Instance Method Summary collapse

Methods inherited from Leaf

#default, #description, #enum, #initialize, #required, #required?, #to_json

Constructor Details

This class inherits a constructor from JSON::Schema::Leaf

Instance Method Details

#to_hObject



5
6
7
# File 'lib/json/schema/boolean.rb', line 5

def to_h
  super.merge!({type: "boolean"})
end