Method: TalonOne::ProductSkuUnitAnalytics#valid?

Defined in:
lib/talon_one/models/product_sku_unit_analytics.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



111
112
113
114
115
116
117
# File 'lib/talon_one/models/product_sku_unit_analytics.rb', line 111

def valid?
  return false if @start_time.nil?
  return false if @end_time.nil?
  return false if @purchased_units.nil?
  return false if @sku.nil?
  true
end