Method: IndexeaClient::WidgetBean#valid?

Defined in:
lib/indexea_client/models/widget_bean.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



210
211
212
213
214
215
216
# File 'lib/indexea_client/models/widget_bean.rb', line 210

def valid?
  type_validator = EnumAttributeValidator.new('Object', ['web', 'mobile', 'desktop', 'widget'])
  return false unless type_validator.valid?(@type)
  sub_type_validator = EnumAttributeValidator.new('Object', ['None', 'SearchBox', 'SearchDialog', 'QueryBox'])
  return false unless sub_type_validator.valid?(@sub_type)
  true
end