Method: AmzSpApi::SalesApiModel::Error#valid?

Defined in:
lib/sales-api-model/models/error.rb

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



95
96
97
98
99
# File 'lib/sales-api-model/models/error.rb', line 95

def valid?
  return false if @code.nil?
  return false if @message.nil?
  true
end