Method: Plaid::MFA#list_invalid_properties

Defined in:
lib/plaid/models/mfa.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# File 'lib/plaid/models/mfa.rb', line 105

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

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

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

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

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

  invalid_properties
end