价格查找代码变得容易
? 4032? 4011? 4023
从国际产品标准联合会清理数据
将此行添加到您的应用程序的gemfile:
gem "plu"
列表已知Plus
PLU . all
从PLU获取名字
PLU . new ( 4011 ) . name # Bananas
检查是否有效
PLU . new ( 2000 ) . valid? # false
对于具有5位数字的加上,第一个数字具有特殊的含义:9指定有机。
4011-香蕉? 94011-有机香蕉?
PLU . new ( 94011 ) . organic? # true
PLU . new ( 3170 ) . retailer_assigned? # true
查看Changelog
鼓励每个人都帮助改善该项目。以下是您可以提供帮助的几种方法:
开始开发:
git clone https://github.com/ankane/plu.git
cd plu
bundle install
bundle exec rake test