Class: Textus::Store::Validator
- Inherits:
-
Object
- Object
- Textus::Store::Validator
- Defined in:
- lib/textus/store/validator.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(reader:, manifest:, audit_log:, schema_for:) ⇒ Validator
constructor
A new instance of Validator.
Constructor Details
#initialize(reader:, manifest:, audit_log:, schema_for:) ⇒ Validator
Returns a new instance of Validator.
4 5 6 7 8 9 |
# File 'lib/textus/store/validator.rb', line 4 def initialize(reader:, manifest:, audit_log:, schema_for:) @reader = reader @manifest = manifest @audit_log = audit_log @schema_for = schema_for end |
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 |
# File 'lib/textus/store/validator.rb', line 11 def call violations = [] check_content_violations(violations) (violations) { "protocol" => PROTOCOL, "ok" => violations.empty?, "violations" => violations } end |