Class: SchemaTest::Property::String
- Inherits:
-
SchemaTest::Property
- Object
- SchemaTest::Property
- SchemaTest::Property::String
- Defined in:
- lib/schema_test/property.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from SchemaTest::Property
#description, #name, #optional, #type
Instance Method Summary collapse
-
#initialize(name, description = nil) ⇒ String
constructor
A new instance of String.
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 |