Class: Fluent::Json::Schema::Terms::Bool

Inherits:
Field
  • Object
show all
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_jsonObject



6
7
8
# File 'lib/fluent/json/schema/terms/bool.rb', line 6

def as_json
  super({ type: :boolean })
end