Module: StructureValidator

Defined in:
lib/structure_validator.rb,
lib/structure_validator/version.rb

Defined Under Namespace

Classes: UnsupportedDataType

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.validate(object, expected_structure) ⇒ Object



7
8
9
# File 'lib/structure_validator.rb', line 7

def self.validate(object, expected_structure)
  check_required_keys(object, expected_structure) && check_type_for_each_key(object, expected_structure)
end