Method: GongAPI::GenericProperty#valid?
- Defined in:
- lib/gong_api/models/generic_property.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
120 121 122 123 124 125 126 127 |
# File 'lib/gong_api/models/generic_property.rb', line 120 def valid? return false if @data_type.nil? data_type_validator = EnumAttributeValidator.new('Object', ['date', 'number', 'string', 'url']) return false unless data_type_validator.valid?(@data_type) return false if @name.nil? return false if @value.nil? true end |