class Cuprum::Collections::Constraints::QueryHash

Asserts that the object is a Hash with valid attribute name keys.

Public Class Methods

new(**options) click to toggle source
Calls superclass method
# File lib/cuprum/collections/constraints/query_hash.rb, line 11
def initialize(**options)
  super(
    allow_empty: true,
    key_type:    attribute_name_constraint,
    **options
  )
end

Private Instance Methods

attribute_name_constraint() click to toggle source
# File lib/cuprum/collections/constraints/query_hash.rb, line 21
def attribute_name_constraint
  Cuprum::Collections::Constraints::AttributeName.instance
end