Method: TransferZero::Document#valid?
- Defined in:
- lib/transferzero-sdk/models/document.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
218 219 220 221 222 223 224 |
# File 'lib/transferzero-sdk/models/document.rb', line 218 def valid? return false if @upload.nil? return false if @upload_file_name.nil? side_validator = EnumAttributeValidator.new('String', ["front", "back"]) return false unless side_validator.valid?(@side) true end |