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_schema_hash, #as_schema_json

Instance Method Details

#schema_attrsObject



10
11
12
# File 'lib/schema_tools/modules/attributes.rb', line 10

def schema_attrs
  @schema_attrs ||= {}
end