Class: SavedClaim::EducationBenefits::VA1990s
- Inherits:
-
SavedClaim::EducationBenefits
- Object
- ActiveRecord::Base
- ApplicationRecord
- SavedClaim
- SavedClaim::EducationBenefits
- SavedClaim::EducationBenefits::VA1990s
- Defined in:
- app/models/saved_claim/education_benefits/va_1990s.rb
Instance Method Summary collapse
-
#form_matches_schema ⇒ Object
Overwrite this from SavedClaim as do not want to overwrite self.class::FORM.
Methods inherited from SavedClaim::EducationBenefits
#add_education_benefits_claim, #after_submit, form_class, #in_progress_form_id, #regional_office_address
Methods inherited from SavedClaim
add_form_and_validation, #after_create_metrics, #after_destroy_metrics, #attachment_keys, #business_line, #confirmation_number, #email, #form_is_string, #form_must_be_string, #insert_notification, #open_struct_form, #parsed_form, #process_attachments!, #submitted_at, #to_pdf, #update_form, #va_notification?, #validate_form, #validate_schema
Methods inherited from ApplicationRecord
descendants_using_encryption, lockbox_options, #timestamp_attributes_for_update_in_model, #valid?
Instance Method Details
#form_matches_schema ⇒ Object
Overwrite this from SavedClaim as do not want to overwrite self.class::FORM
7 8 9 10 11 12 13 |
# File 'app/models/saved_claim/education_benefits/va_1990s.rb', line 7 def form_matches_schema return unless form_is_string JSON::Validator.fully_validate(VetsJsonSchema::SCHEMAS['VRRAP'], parsed_form).each do |v| errors.add(:form, v.to_s) end end |