Fulfil.io Ruby Gem
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install fulfil
require 'fulfil' before you start using the gem.
To setup your account, you need to do the following
If you are using rails, this should ideally go inside an initializer.
This will fetch you products in your account
#To get a product with a specific ID product = Fulfil::Product.get id #To get all products in your account products = Fulfil::Product.all #To find a specific product using filter product = Fulfil::Product.find(['name','=','iphone6s']) puts product.name,product.id #any attribute is a valid method of the object.
- Fork it ( https://github.com/manojmj92/fulfil/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request