Class: SchemaTest::Property::Float

Inherits:
SchemaTest::Property show all
Defined in:
lib/schema_test/property.rb

Constant Summary

Constants inherited from SchemaTest::Property

NULL_TYPE

Instance Attribute Summary

Attributes inherited from SchemaTest::Property

#_type, #description, #name

Instance Method Summary collapse

Methods inherited from SchemaTest::Property

#==, #as_json_schema, #json_schema_format, #json_schema_type, #lookup_object, #nullable, #nullable!, #nullable?, #optional, #optional!, #optional?, #type

Constructor Details

#initialize(name, description = nil) ⇒ Float

Returns a new instance of Float.



99
100
101
# File 'lib/schema_test/property.rb', line 99

def initialize(name, description=nil)
  super(name, :float, description)
end

Instance Method Details

#base_json_schema_typeObject



103
104
105
# File 'lib/schema_test/property.rb', line 103

def base_json_schema_type
  'number'
end