Class: Cuprum::Collections::Constraints::QueryHash
- Inherits:
-
Stannum::Constraints::Types::HashType
- Object
- Stannum::Constraints::Types::HashType
- Cuprum::Collections::Constraints::QueryHash
- Defined in:
- lib/cuprum/collections/constraints/query_hash.rb
Overview
Asserts that the object is a Hash with valid attribute name keys.
Instance Method Summary collapse
-
#initialize(**options) ⇒ QueryHash
constructor
A new instance of QueryHash.
Constructor Details
#initialize(**options) ⇒ QueryHash
Returns a new instance of QueryHash.
11 12 13 14 15 16 17 |
# File 'lib/cuprum/collections/constraints/query_hash.rb', line 11 def initialize(**) super( allow_empty: true, key_type: attribute_name_constraint, ** ) end |