Method: Hubspot::Cms::UrlRedirects::CollectionResponseWithTotalUrlMapping#list_invalid_properties

Defined in:
lib/hubspot/codegen/cms/url-redirects/models/collection_response_with_total_url_mapping.rb

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons

[View source]

83
84
85
86
87
88
89
90
91
92
93
94
# File 'lib/hubspot/codegen/cms/url-redirects/models/collection_response_with_total_url_mapping.rb', line 83

def list_invalid_properties
  invalid_properties = Array.new
  if @total.nil?
    invalid_properties.push('invalid value for "total", total cannot be nil.')
  end

  if @results.nil?
    invalid_properties.push('invalid value for "results", results cannot be nil.')
  end

  invalid_properties
end