Skip to content
/ plu Public

Price look-up codes made easy

License

Notifications You must be signed in to change notification settings

ankane/plu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PLU

Price look-up codes made easy

🍉 4032 🍌 4011 🍇 4023

Download PLU codes - data cleaned up from the Produce Marketing Association

How To Use

List known PLUs

PLU.all

Get name from PLU

PLU.new(4011).name # Bananas

Check if valid

PLU.new(2000).valid? # false

5-Digit PLUs

For PLUs with 5 digits, the first digit has a special meaning: 9 specifies organic, and 8 specifies genetically modified.

4011 - Bananas 94011 - Organic bananas 84011 - Genetically modified bananas

PLU.new(94011).organic? # true
PLU.new(84011).gm?      # true

Installation

Add this line to your Gemfile:

gem "plu"

And run:

bundle

TODO

  • clean up data

Resources

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Price look-up codes made easy

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages