Module: SchemaTools::Modules::Attributes
- Extended by:
- ActiveSupport::Concern
- Includes:
- AsSchema
- Defined in:
- lib/schema_tools/modules/attributes.rb
Overview
Add schema properties to a class by using has_schema_attrs to define from which schema to inherit attributes.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Methods included from AsSchema
#as_hash, #as_json, #as_schema_hash, #as_schema_json
Instance Method Details
#schema ⇒ Object
23 24 25 |
# File 'lib/schema_tools/modules/attributes.rb', line 23 def schema self.class.schema end |
#schema_attrs ⇒ Object
19 20 21 |
# File 'lib/schema_tools/modules/attributes.rb', line 19 def schema_attrs @schema_attrs ||= {} end |