Method: UpBankingClient::CategoryResource#list_invalid_properties

Defined in:
lib/up_banking/models/category_resource.rb

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# File 'lib/up_banking/models/category_resource.rb', line 102

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

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

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

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

  invalid_properties
end