Class: Textus::Application::Reads::ValidateAll
- Inherits:
-
Object
- Object
- Textus::Application::Reads::ValidateAll
- Defined in:
- lib/textus/application/reads/validate_all.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(ctx:, manifest:, file_store:, schemas:, audit_log:) ⇒ ValidateAll
constructor
A new instance of ValidateAll.
Constructor Details
#initialize(ctx:, manifest:, file_store:, schemas:, audit_log:) ⇒ ValidateAll
Returns a new instance of ValidateAll.
5 6 7 8 9 10 11 |
# File 'lib/textus/application/reads/validate_all.rb', line 5 def initialize(ctx:, manifest:, file_store:, schemas:, audit_log:) @ctx = ctx @manifest = manifest @file_store = file_store @schemas = schemas @audit_log = audit_log end |
Instance Method Details
#call ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/textus/application/reads/validate_all.rb', line 13 def call Validator.new( reader: Get.new(ctx: @ctx, manifest: @manifest, file_store: @file_store), manifest: @manifest, audit_log: @audit_log, schema_for: ->(name) { @schemas.fetch_or_nil(name) }, ).call end |