Class: Fluent::Json::Schema::Terms::Int

Inherits:
Num
  • Object
show all
Defined in:
lib/fluent/json/schema/terms/int.rb

Instance Attribute Summary

Attributes inherited from Num

#exclusive_maximum, #exclusive_minimum, #maximum, #minimum, #multiple_of, #type

Attributes inherited from Field

#constraints, #default, #enum, #name, #required, #version

Instance Method Summary collapse

Methods inherited from Num

#as_json, #set

Methods inherited from Field

#as_json, #mandate, #optionalise, #set

Constructor Details

#initialize(name) ⇒ Int

Returns a new instance of Int.



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

def initialize(name)
  super(name, :integer)
end