Method: DocSpring::Template#valid?
- Defined in:
- lib/docspring/models/template.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 |
# File 'lib/docspring/models/template.rb', line 673 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @add_data_request_submission_id_footers.nil? return false if @allow_additional_properties.nil? return false if @document_parse_error.nil? return false if @document_processed.nil? return false if @document_state.nil? document_state_validator = EnumAttributeValidator.new('String', ["pending", "processed", "password_required", "malformed_pdf", "unknown_error"]) return false unless document_state_validator.valid?(@document_state) return false if @editable_submissions.nil? return false if @encrypt_pdfs.nil? return false if @expiration_interval.nil? return false if @expire_after.nil? return false if @expire_submissions.nil? return false if @first_template.nil? return false if @locked.nil? return false if @merge_audit_trail_pdf.nil? return false if @page_count.nil? return false if @public_submissions.nil? return false if @public_web_form.nil? return false if @template_type.nil? template_type_validator = EnumAttributeValidator.new('String', ["pdf", "html"]) return false unless template_type_validator.valid?(@template_type) return false if @demo.nil? return false if @defaults.nil? return false if @field_order.nil? return false if @fields.nil? return false if @html_engine_options.nil? return false if @predefined_fields.nil? return false if @shared_field_data.nil? true end |