Method: OpenapiClient::AddressResponse#valid?
- Defined in:
- lib/openapi_client/models/address_response.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
135 136 137 138 139 |
# File 'lib/openapi_client/models/address_response.rb', line 135 def valid? country_validator = EnumAttributeValidator.new('String', ["null", "AT", "AU", "BE", "CA", "CH", "CZ", "DE", "DK", "EE", "ES", "FR", "GB", "IE", "IT", "JP", "LT", "LV", "NL", "NO", "PL", "RO", "SE", "SG", "SK", "US"]) return false unless country_validator.valid?(@country) true end |