Method: OpenapiClient::Frequency#list_invalid_properties

Defined in:
lib/openapi_client/models/frequency.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/openapi_client/models/frequency.rb', line 88

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

  if @every > 1000
    invalid_properties.push('invalid value for "every", must be smaller than or equal to 1000.')
  end

  if @every < 1
    invalid_properties.push('invalid value for "every", must be greater than or equal to 1.')
  end

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

  invalid_properties
end