Class: Compel::Builder::Hash
- Defined in:
- lib/compel/builder/hash.rb
Instance Attribute Summary
Attributes inherited from Schema
Instance Method Summary collapse
-
#initialize ⇒ Hash
constructor
A new instance of Hash.
- #keys(object) ⇒ Object
Methods inherited from Schema
#default_value, human_name, #required?, #validate
Methods included from Common
#default, #is, #length, #max_length, #min_length, #required
Constructor Details
Instance Method Details
#keys(object) ⇒ Object
12 13 14 15 |
# File 'lib/compel/builder/hash.rb', line 12 def keys(object) [:keys] = coerce_keys_schemas(object) self end |