Method: UltracartClient::OrderInternal#valid?

Defined in:
lib/ultracart_api/models/order_internal.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



126
127
128
129
# File 'lib/ultracart_api/models/order_internal.rb', line 126

def valid?
  return false if !@sales_rep_code.nil? && @sales_rep_code.to_s.length > 10
  true
end