Method: XbimAim::ModelCreate#list_invalid_properties

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

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/xbim_aim/models/model_create.rb', line 135

def list_invalid_properties
  invalid_properties = Array.new
  if @name.nil?
    invalid_properties.push('invalid value for "name", name cannot be nil.')
  end

  if @revision.nil?
    invalid_properties.push('invalid value for "revision", revision cannot be nil.')
  end

  if @status.nil?
    invalid_properties.push('invalid value for "status", status cannot be nil.')
  end

  invalid_properties
end