Method: TalonOne::NotificationTest#list_invalid_properties

Defined in:
lib/talon_one/models/notification_test.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/talon_one/models/notification_test.rb', line 71

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

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

  invalid_properties
end