Module: ActiveAgent::SchemaGenerator::ActiveModelClassMethods
- Defined in:
- lib/active_agent/schema_generator.rb
Overview
Class methods added to ActiveModel classes.
Instance Method Summary collapse
-
#to_json_schema(options = {}) ⇒ Hash
Generates a JSON Schema representation of the ActiveModel class.
Instance Method Details
#to_json_schema(options = {}) ⇒ Hash
Generates a JSON Schema representation of the ActiveModel class.
104 105 106 |
# File 'lib/active_agent/schema_generator.rb', line 104 def to_json_schema( = {}) ActiveAgent::SchemaGenerator::Builder.json_schema_from_model(self, ) end |