Take an option to has_barcode called :type_class that allows you to override what class the Barby encoder will use.