lib/vanity/metric/base.rb
def track_args(args)
      case args
      when Hash
        timestamp, identity, values = args.values_at(:timestamp, :identity, :values)
      when Array
        values = args
      when Numeric
        values = [args]
      end
      identity ||= Vanity.context.vanity_identity rescue nil
      [timestamp || Time.now, identity, values || [1]]
    end
def track_args(args)
      case args
      when Hash
        timestamp, identity, values = args.values_at(:timestamp, :identity, :values)
      when Array
        values = args
      when Numeric
        values = [args]
      end
      identity ||= Vanity.context.vanity_identity rescue nil
      [timestamp || Time.now, identity, values || [1]]
    end
Parses arguments to track! method and return array with timestamp,
 identity and array of values.