Method: CloudsmithApi::CommonMetrics#list_invalid_properties
- Defined in:
- lib/cloudsmith-api/models/common_metrics.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/cloudsmith-api/models/common_metrics.rb', line 83 def list_invalid_properties invalid_properties = Array.new if @bandwidth.nil? invalid_properties.push('invalid value for "bandwidth", bandwidth cannot be nil.') end if @downloads.nil? invalid_properties.push('invalid value for "downloads", downloads cannot be nil.') end invalid_properties end |