Class: SchemaTest::Property::String

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

Direct Known Subclasses

Uri

Instance Attribute Summary

Attributes inherited from SchemaTest::Property

#description, #name, #optional, #type

Instance Method Summary collapse

Methods inherited from SchemaTest::Property

#==, #as_json_schema, #as_structure, #json_schema_format, #json_schema_type, #optional!, #optional?

Constructor Details

#initialize(name, description = nil) ⇒ String

Returns a new instance of String.



73
74
75
# File 'lib/schema_test/property.rb', line 73

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