Method: DocSpring::SubmissionDataRequestEvent#valid?
- Defined in:
- lib/docspring/models/submission_data_request_event.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
172 173 174 175 176 177 178 179 180 181 |
# File 'lib/docspring/models/submission_data_request_event.rb', line 172 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @event_type.nil? event_type_validator = EnumAttributeValidator.new('String', ["send_request", "view_request", "accepted_terms", "decline_request", "sign_request", "all_completed"]) return false unless event_type_validator.valid?(@event_type) return false if @message_type.nil? = EnumAttributeValidator.new('String', ["email", "sms", "fax", "mail", "slack", "msteams", "discord", "telegram", "whatsapp"]) return false unless .valid?(@message_type) true end |