Method: Bandwidth::OptInWorkflow#list_invalid_properties
- Defined in:
- lib/bandwidth-sdk/models/opt_in_workflow.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 |
# File 'lib/bandwidth-sdk/models/opt_in_workflow.rb', line 90 def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @description.nil? invalid_properties.push('invalid value for "description", description cannot be nil.') end if @description.to_s.length > 500 invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 500.') end if @description.to_s.length < 1 invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.') end if @image_urls.nil? invalid_properties.push('invalid value for "image_urls", image_urls cannot be nil.') end if !@confirmation_response.nil? && @confirmation_response.to_s.length > 500 invalid_properties.push('invalid value for "confirmation_response", the character length must be smaller than or equal to 500.') end if !@confirmation_response.nil? && @confirmation_response.to_s.length < 0 invalid_properties.push('invalid value for "confirmation_response", the character length must be great than or equal to 0.') end invalid_properties end |