Class: Axn::Core::Contract::ShapeConfig
- Inherits:
-
Data
- Object
- Data
- Axn::Core::Contract::ShapeConfig
- Defined in:
- lib/axn/core/contract.rb
Overview
One member declared inside a structured field’s block (‘field :name, …`). Nested members live in validations[:members], so the tree is uniform at every depth and walked by both ShapeValidator (runtime) and axn-mcp (schema).
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#validations ⇒ Object
readonly
Returns the value of attribute validations.
Instance Method Summary collapse
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field
29 30 31 |
# File 'lib/axn/core/contract.rb', line 29 def field @field end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
29 30 31 |
# File 'lib/axn/core/contract.rb', line 29 def @metadata end |
#validations ⇒ Object (readonly)
Returns the value of attribute validations
29 30 31 |
# File 'lib/axn/core/contract.rb', line 29 def validations @validations end |
Instance Method Details
#description ⇒ Object
30 |
# File 'lib/axn/core/contract.rb', line 30 def description = [:description] |