Class: Fluent::Json::Schema::Terms::Bool
- Defined in:
- lib/fluent/json/schema/terms/bool.rb
Instance Attribute Summary
Attributes inherited from Field
#constraints, #default, #enum, #name, #required, #version
Instance Method Summary collapse
Methods inherited from Field
#initialize, #mandate, #optionalise, #set
Constructor Details
This class inherits a constructor from Fluent::Json::Schema::Terms::Field
Instance Method Details
#as_json ⇒ Object
6 7 8 |
# File 'lib/fluent/json/schema/terms/bool.rb', line 6 def as_json super({ type: :boolean }) end |