Method: Hubspot::Cms::UrlRedirects::UrlMappingCreateRequestBody#list_invalid_properties
- Defined in:
- lib/hubspot/codegen/cms/url-redirects/models/url_mapping_create_request_body.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
# File 'lib/hubspot/codegen/cms/url-redirects/models/url_mapping_create_request_body.rb', line 135 def list_invalid_properties invalid_properties = Array.new if @route_prefix.nil? invalid_properties.push('invalid value for "route_prefix", route_prefix cannot be nil.') end if @destination.nil? invalid_properties.push('invalid value for "destination", destination cannot be nil.') end if @redirect_style.nil? invalid_properties.push('invalid value for "redirect_style", redirect_style cannot be nil.') end invalid_properties end |