Method: DocSpring::UploadPresignResponse#valid?

Defined in:
lib/docspring/models/upload_presign_response.rb

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



139
140
141
142
143
144
145
146
147
# File 'lib/docspring/models/upload_presign_response.rb', line 139

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  return false if @fields.nil?
  return false if @headers.nil?
  return false if @url.nil?
  method_validator = EnumAttributeValidator.new('String', ["post"])
  return false unless method_validator.valid?(@method)
  true
end