Method: UltracartClient::AutoOrderAddonItemOption#valid?

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

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



92
93
94
95
96
# File 'lib/ultracart_api/models/auto_order_addon_item_option.rb', line 92

def valid?
  return false if !@label.nil? && @label.to_s.length > 50
  return false if !@value.nil? && @value.to_s.length > 1024
  true
end