Module: Mongo::BulkWrite::Validatable Private
- Included in:
- OrderedCombiner, UnorderedCombiner
- Defined in:
- lib/mongo/bulk_write/validatable.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defines behaviour around validations.
Instance Method Summary collapse
-
#validate(name, document) ⇒ Hash, BSON::Document
private
Validate the document.
Instance Method Details
#validate(name, document) ⇒ Hash, BSON::Document
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Validate the document.
40 41 42 43 |
# File 'lib/mongo/bulk_write/validatable.rb', line 40 def validate(name, document) validate_operation(name) validate_document(name, document) end |