Method: WebApiActivequerybuilder::Totals#valid?

Defined in:
lib/webapi-active-query-builder/models/totals.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



100
101
102
103
104
# File 'lib/webapi-active-query-builder/models/totals.rb', line 100

def valid?
  aggregate_validator = EnumAttributeValidator.new('String', ["avg", "count", "max", "min", "sum"])
  return false unless aggregate_validator.valid?(@aggregate)
  return true
end