Method: GongAPI::GenericProperty#list_invalid_properties
- Defined in:
- lib/gong_api/models/generic_property.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/gong_api/models/generic_property.rb', line 101 def list_invalid_properties invalid_properties = Array.new if @data_type.nil? invalid_properties.push('invalid value for "data_type", data_type cannot be nil.') end if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end if @value.nil? invalid_properties.push('invalid value for "value", value cannot be nil.') end invalid_properties end |