lib/plu.rb in plu-0.0.2 vs lib/plu.rb in plu-0.0.3
- old
+ new
@@ -20,9 +20,13 @@
def gm?
modifier == "8"
end
+ def retailer_assigned?
+ name.to_s.start_with?("Retailer Assigned")
+ end
+
# TODO more items
def self.all
@all ||= begin
all = {}
CSV.foreach File.expand_path("../../plu_codes.csv", __FILE__), headers: true do |row|