Class: EasyJSONMatcher::ObjectValidator
- Defined in:
- lib/easy_json_matcher/object_validator.rb
Instance Attribute Summary
Attributes inherited from Validator
#content, #custom_validator, #errors, #key, #required
Instance Method Summary collapse
Methods inherited from Validator
#_check_content_type, #_check_required?, #_create_validator, #_custom_validator?, #_no_errors?, #_post_initialise, #_run_custom_validator, #_set_content, #get_errors, #initialize, #reset!, #valid?
Constructor Details
This class inherits a constructor from EasyJSONMatcher::Validator
Instance Method Details
#_content_is_object? ⇒ Boolean
8 9 10 |
# File 'lib/easy_json_matcher/object_validator.rb', line 8 def _content_is_object? errors << "#{content} is not an Object" unless content.is_a? Hash end |
#_validate ⇒ Object
4 5 6 |
# File 'lib/easy_json_matcher/object_validator.rb', line 4 def _validate _content_is_object? end |