Class: Hames::Schema::KeySpec

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

Instance Attribute Details

#defaultObject (readonly)

Returns the value of attribute default

Returns:

  • (Object)

    the current value of default



26
27
28
# File 'lib/hames/schema.rb', line 26

def default
  @default
end

#docObject (readonly)

Returns the value of attribute doc

Returns:

  • (Object)

    the current value of doc



26
27
28
# File 'lib/hames/schema.rb', line 26

def doc
  @doc
end

#enumObject (readonly)

Returns the value of attribute enum

Returns:

  • (Object)

    the current value of enum



26
27
28
# File 'lib/hames/schema.rb', line 26

def enum
  @enum
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



26
27
28
# File 'lib/hames/schema.rb', line 26

def name
  @name
end

#requiredObject (readonly)

Returns the value of attribute required

Returns:

  • (Object)

    the current value of required



26
27
28
# File 'lib/hames/schema.rb', line 26

def required
  @required
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



26
27
28
# File 'lib/hames/schema.rb', line 26

def type
  @type
end