Method: DocSpring::AddFieldsData#valid?

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

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid


83
84
85
86
87
# File 'lib/docspring/models/add_fields_data.rb', line 83

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  return false if @fields.nil?
  true
end