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
755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 |
# File 'lib/docspring/models/template.rb', line 755 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if .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? last_changed_by_type_validator = EnumAttributeValidator.new('String', ["user", "api"]) return false unless last_changed_by_type_validator.valid?(@last_changed_by_type) return false if @defaults.nil? return false if @field_order.nil? return false if @fields.nil? return false if .nil? return false if @predefined_fields.nil? return false if @shared_field_data.nil? return false if @versions.nil? true end |