Class: Hames::Schema::KeySpec
- Inherits:
-
Data
- Object
- Data
- Hames::Schema::KeySpec
- Defined in:
- lib/hames/schema.rb
Overview
One key's rules. type is a Class or an array of Classes (a union);
[TrueClass, FalseClass] is how a boolean is spelled, since Ruby has no
Boolean class. default documents what the service reads when the key is
missing — it fills a missing key at read time, it does NOT merge into the
config, because config layering is wholesale-replace (CLAUDE.md).
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#doc ⇒ Object
readonly
Returns the value of attribute doc.
-
#enum ⇒ Object
readonly
Returns the value of attribute enum.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#required ⇒ Object
readonly
Returns the value of attribute required.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Attribute Details
#default ⇒ Object (readonly)
Returns the value of attribute default
26 27 28 |
# File 'lib/hames/schema.rb', line 26 def default @default end |
#doc ⇒ Object (readonly)
Returns the value of attribute doc
26 27 28 |
# File 'lib/hames/schema.rb', line 26 def doc @doc end |
#enum ⇒ Object (readonly)
Returns the value of attribute enum
26 27 28 |
# File 'lib/hames/schema.rb', line 26 def enum @enum end |
#name ⇒ Object (readonly)
Returns the value of attribute name
26 27 28 |
# File 'lib/hames/schema.rb', line 26 def name @name end |
#required ⇒ Object (readonly)
Returns the value of attribute required
26 27 28 |
# File 'lib/hames/schema.rb', line 26 def required @required end |
#type ⇒ Object (readonly)
Returns the value of attribute type
26 27 28 |
# File 'lib/hames/schema.rb', line 26 def type @type end |