Method: FlatApi::AssignmentSubmissionUpdate#list_invalid_properties

Defined in:
lib/flat_api/models/assignment_submission_update.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# File 'lib/flat_api/models/assignment_submission_update.rb', line 120

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  if !@draft_grade.nil? && @draft_grade > 10000
    invalid_properties.push('invalid value for "draft_grade", must be smaller than or equal to 10000.')
  end

  if !@draft_grade.nil? && @draft_grade < 0
    invalid_properties.push('invalid value for "draft_grade", must be greater than or equal to 0.')
  end

  if !@grade.nil? && @grade > 10000
    invalid_properties.push('invalid value for "grade", must be smaller than or equal to 10000.')
  end

  if !@grade.nil? && @grade < 0
    invalid_properties.push('invalid value for "grade", must be greater than or equal to 0.')
  end

  invalid_properties
end