mirror of
https://github.com/ditkrg/schemable.git
synced 2026-01-22 22:26:41 +00:00
14 lines
461 B
Plaintext
14 lines
461 B
Plaintext
module Schemable
|
|
class AttributeSchemaGenerator
|
|
attr_accessor model: Class
|
|
attr_accessor model_definition: Definition
|
|
attr_accessor configuration: Configuration
|
|
attr_accessor response: Hash[Symbol, any]?
|
|
attr_accessor schema_modifier: SchemaModifier
|
|
|
|
def initialize: (Definition) -> void
|
|
def generate_attributes_schema: -> (Hash[Symbol, any] | Array[any])
|
|
def generate_attribute_schema: (Symbol) -> Hash[Symbol, any]
|
|
end
|
|
end
|