Class: Meta::Entity
- Inherits:
-
Object
- Object
- Meta::Entity
- Extended by:
- Forwardable
- Defined in:
- lib/meta/entity.rb
Class Attribute Summary collapse
-
.schema_builder ⇒ Object
readonly
Returns the value of attribute schema_builder.
Class Method Summary collapse
Class Attribute Details
.schema_builder ⇒ Object (readonly)
Returns the value of attribute schema_builder.
12 13 14 |
# File 'lib/meta/entity.rb', line 12 def schema_builder @schema_builder end |
Class Method Details
.inherited(base) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/meta/entity.rb', line 14 def inherited(base) base.instance_eval do @schema_builder = JsonSchema::ObjectSchemaBuilder.new @schema_builder.schema_name(proc { |locked_scope, stage| generate_schema_name(locked_scope, stage) }) end end |
.method_missing(method, *args) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/meta/entity.rb', line 25 def method_missing(method, *args) if method =~ /^lock_(\w+)$/ schema_builder.send(method, *args) else super end end |