Method: OpenapiClient::LocationInner#valid?

Defined in:
lib/openapi_client/models/location_inner.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# File 'lib/openapi_client/models/location_inner.rb', line 74

def valid?
  _any_of_found = false
  self.class.openapi_any_of.each do |_class|
    _any_of = OpenapiClient.const_get(_class).build_from_hash(self.to_hash)
    if _any_of.valid?
      _any_of_found = true
    end
  end

  if !_any_of_found
    return false
  end

  true
end