Method: XbimAim::ModelCreate#valid?

Defined in:
lib/xbim_aim/models/model_create.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



154
155
156
157
158
159
160
161
# File 'lib/xbim_aim/models/model_create.rb', line 154

def valid?
  return false if @name.nil?
  return false if @revision.nil?
  return false if @status.nil?
  state_validator = EnumAttributeValidator.new('String', ["Active", "Hidden", "Archived"])
  return false unless state_validator.valid?(@state)
  true
end