Method: TogaiClient::UsageConfig#valid?

Defined in:
lib/togai_client/models/usage_config.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



132
133
134
135
136
137
138
# File 'lib/togai_client/models/usage_config.rb', line 132

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  return false if @mode.nil?
  mode_validator = EnumAttributeValidator.new('String', ["CUSTOM", "LOOKUP_RANGE", "LOOKUP_CYCLE"])
  return false unless mode_validator.valid?(@mode)
  true
end