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, options = {}) ⇒ Object
Methods inherited from Schema
#build_option, #default_options, #default_value, human_name, #required?, #validate
Methods included from Common
#coerce_if_proc, #default, #if, #is, #length, #max_length, #min_length, #required
Constructor Details
Instance Method Details
#keys(object, options = {}) ⇒ Object
12 13 14 |
# File 'lib/compel/builder/hash.rb', line 12 def keys(object, = {}) build_option :keys, coerce_keys_schemas(object), end |