Class: SchemaTest::Property::AnonymousObject
- Inherits:
-
Object
- Object
- SchemaTest::Property
- Object
- SchemaTest::Property::AnonymousObject
- Defined in:
- lib/schema_test/property.rb
Constant Summary
Constants inherited from Object
Object::SHORTHAND_ATTRIBUTES, Object::TYPES
Instance Attribute Summary
Attributes inherited from Object
Attributes inherited from SchemaTest::Property
#description, #name, #optional, #type
Instance Method Summary collapse
- #as_structure(_ = nil) ⇒ Object
-
#initialize(properties: nil, &block) ⇒ AnonymousObject
constructor
A new instance of AnonymousObject.
Methods inherited from Object
#==, #array, #as_json_schema, #json_schema_type, #object, #properties, #resolve
Methods inherited from SchemaTest::Property
#==, #as_json_schema, #json_schema_format, #json_schema_type, #optional!, #optional?
Constructor Details
#initialize(properties: nil, &block) ⇒ AnonymousObject
Returns a new instance of AnonymousObject.
230 231 232 |
# File 'lib/schema_test/property.rb', line 230 def initialize(properties: nil, &block) super(nil, properties: properties, &block) end |
Instance Method Details
#as_structure(_ = nil) ⇒ Object
234 235 236 |
# File 'lib/schema_test/property.rb', line 234 def as_structure(_=nil) super(false) end |