Method: FlatApi::ScoreDetails#list_invalid_properties

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

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
# File 'lib/flat_api/models/score_details.rb', line 427

def list_invalid_properties
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
  invalid_properties = Array.new
  if @id.nil?
    invalid_properties.push('invalid value for "id", id cannot be nil.')
  end

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

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

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

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

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

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

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

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

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

  invalid_properties
end