Class: Axn::Core::Contract::ShapeConfig

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field

Returns:

  • (Object)

    the current value of field



29
30
31
# File 'lib/axn/core/contract.rb', line 29

def field
  @field
end

#metadataObject (readonly)

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



29
30
31
# File 'lib/axn/core/contract.rb', line 29

def 
  @metadata
end

#validationsObject (readonly)

Returns the value of attribute validations

Returns:

  • (Object)

    the current value of validations



29
30
31
# File 'lib/axn/core/contract.rb', line 29

def validations
  @validations
end

Instance Method Details

#descriptionObject



30
# File 'lib/axn/core/contract.rb', line 30

def description = [:description]