Skip to content

rickbutton/inventory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inventory

Inventory is a gem that allows you to programmatically access retail store stock information. In the future it will support multiple stores, but for now it only supports Walmart.

Installation

Add this line to your application's Gemfile:

gem 'inventory'

And then execute:

$ bundle

Or install it yourself as:

$ gem install inventory

Usage

Walmart

  1. Find the store's id code. (Using store number 2339 in this example)
  2. Find the UPCs of the products you want to check. (Using 7239231921 in this example).
Inventory::Walmart.fetch(2339, 7239231921)

=> Inventory::Walmart::Product:  {:upc=>7239231921, :name=>"Hawaiian Punch: Fruit Juicy Red Drink Mix, .74 Oz",         :image=>"http://i.walmartimages.com/i/p/00/07/23/92/31/0007239231921_215X215.jpg", :store_code=>"2339", :price=>100, :in_stock=>true, :aisle=>"A14"}

Contributing

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

About

Ruby gem that allows programatic access to retail stock information.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages